hwmon: (sht15) Fix Kconfig dependencies
Guenter Roeck
maintainerPATCH 2/2 hwmon: (sht15) Fix Kconfig dependencies
sht15 depends on GPIOLIB, not on GENERIC_GPIO.
This fixes the following build error, seen if GPIOLIB is not defined:
src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_direction_input': => 293:2 src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_direction_output': => 216:2 src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_free': => 1000:2 src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_get_value': => 296:2 src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_request': => 946:2 src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_set_value': => 218:2 src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_to_irq': => 514:2
--- drivers/hwmon/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/hwmon/Kconfig +1 -1
@@ -872,7 +872,7 @@ source drivers/hwmon/pmbus/Kconfig config SENSORS_SHT15 tristate "Sensiron humidity and temperature sensors. SHT15 and compat." - depends on GENERIC_GPIO + depends on GPIOLIB help If you say yes here you get support for the Sensiron SHT10, SHT11, SHT15, SHT71, SHT75 humidity and temperature sensors.
Signature · 7 lines
1.7.5.4 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 22 lines · Guenter Roeck
sht15 depends on GPIOLIB, not on
GENERIC_GPIO.This fixes the following build error, seen if GPIOLIB is not defined:
src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_direction_input': => 293:2src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_direction_output': => 216:2src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_free': => 1000:2src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_get_value': => 296:2src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_request': => 946:2src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_set_value': => 218:2src/drivers/hwmon/sht15.c: error: implicit declaration of function 'gpio_to_irq': => 514:2Signed-off-by Guenter Roeck <[email protected]>--- drivers/hwmon/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/hwmon/Kconfig +0
-0
drivers/hwmon/Kconfig source drivers/hwmon/pmbus/Kconfig · line 878
Quoted 8 lines
drivers/hwmon/Kconfig +1
-1@@ -872,7 +872,7 @@ source drivers/hwmon/pmbus/Kconfig config SENSORS_SHT15 tristate "Sensiron humidity and temperature sensors. SHT15 and compat." - depends on GENERIC_GPIO + depends on GPIOLIB help If you say yes here you get support for the Sensiron SHT10, SHT11, SHT15, SHT71, SHT75 humidity and temperature sensors.
Good catch.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors