diff options
author | Jean Delvare <[email protected]> | 2010-04-14 16:14:08 +0200 |
---|---|---|
committer | Jean Delvare <[email protected]> | 2010-04-14 16:14:08 +0200 |
commit | c7a78d2c2e2537fd24903e966f34aae50319d587 (patch) | |
tree | b53c5677e1528b8e5659c92a94f1e4fb0fca8923 /tools/perf/util/trace-event-scripting.c | |
parent | 328a2c22abd08911e37fa66f1358f829cecd72e9 (diff) |
hwmon: (sht15) Properly handle the case CONFIG_REGULATOR=n
When CONFIG_REGULATOR isn't set, regulator_get_voltage() returns 0.
Properly handle this case by not trusting the value.
Reported-by: Jerome Oufella <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Cc: Jonathan Cameron <[email protected]>
Acked-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions