diff options
author | Jean Delvare <[email protected]> | 2014-05-25 17:23:08 +0200 |
---|---|---|
committer | Jean Delvare <[email protected]> | 2014-05-25 17:23:08 +0200 |
commit | 59cf4243e557aa64ab2ef51280454aa1f3828e14 (patch) | |
tree | 55aec0b1edfe4d62ca57f9ad803683adc1895acf /tools/perf/util/trace-event-scripting.c | |
parent | 0132514588f3a0685861221058116a383bff4deb (diff) |
hwmon: (ntc_thermistor) Fix dependencies
In commit 9e8269de, support was added for ntc_thermistor devices being
declared in the device tree and implemented on top of IIO. With that
change, a dependency was added to the ntc_thermistor driver:
depends on (!OF && !IIO) || (OF && IIO)
This construct has the drawback that the driver can no longer be
selected when OF is set and IIO isn't, nor when IIO is set and OF is
not. This is a regression for the original users of the driver.
As the new code depends on IIO and is useless without OF, include it
only if both are enabled, and set the dependencies accordingly. This
is clearer, more simple and more correct.
Signed-off-by: Jean Delvare <[email protected]>
Fixes: 9e8269de hwmon: (ntc_thermistor) Add DT with IIO support to NTC thermistor driver
Reviewed-by: Guenter Roeck <[email protected]>
Cc: Naveen Krishna Chatradhi <[email protected]>
Cc: Doug Anderson <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions