Skip to content
Commit f73aaceb authored by Jean Delvare's avatar Jean Delvare Committed by Stefan Bader
Browse files

hwmon: (sht15) Properly handle the case CONFIG_REGULATOR=n

BugLink: http://bugs.launchpad.net/bugs/575853

commit c7a78d2c

 upstream.

When CONFIG_REGULATOR isn't set, regulator_get_voltage() returns 0.
Properly handle this case by not trusting the value.

Reported-by: default avatarJerome Oufella <jerome.oufella@savoirfairelinux.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarAndy Whitcroft <andy.whitcroft@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent e75e8d1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment