Skip to contentSkip to conversation

hwmon: sht15 needs CONFIG_BITREVERSE

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 18, 2015 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon: sht15 needs CONFIG_BITREVERSE

If CONFIG_BITREVERSE is not built-in, the sht15 driver fails to link:

drivers/built-in.o: In function `sht15_crc8':
drivers/hwmon/sht15.c:195: undefined reference to `byte_rev_table'

This adds a Kconfig 'select' statement, like all other users of bitrev.h have it.

Fixes 33836ee98533 ("hwmon:change sht15_reverse()")
drivers/hwmon/Kconfig +1 -0
index 4a6e7c217329..60fb80bd353d 100644
@@ -1207,6 +1207,7 @@ config SENSORS_PWM_FAN
 config SENSORS_SHT15
 	tristate "Sensiron humidity and temperature sensors. SHT15 and compat."
 	depends on GPIOLIB || COMPILE_TEST
+	select BITREVERSE
 	help
 	  If you say yes here you get support for the Sensiron SHT10, SHT11,
 	  SHT15, SHT71, SHT75 humidity and temperature sensors.
maintainer
#1 lore raw
Quoted 10 lines · Arnd Bergmann

If CONFIG_BITREVERSE is not built-in, the sht15 driver fails to link:

drivers/built-in.o: In function `sht15_crc8':
drivers/hwmon/sht15.c:195: undefined reference to `byte_rev_table'

This adds a Kconfig 'select' statement, like all other users of bitrev.h have it.

Fixes 33836ee98533 ("hwmon:change sht15_reverse()")

Good catch. Applied.

Thanks,
Guenter

Quoted 15 lines
drivers/hwmon/Kconfig +1 -0
index 4a6e7c217329..60fb80bd353d 100644
@@ -1207,6 +1207,7 @@ config SENSORS_PWM_FAN
  config SENSORS_SHT15
  	tristate "Sensiron humidity and temperature sensors. SHT15 and compat."
  	depends on GPIOLIB || COMPILE_TEST
+	select BITREVERSE
  	help
  	  If you say yes here you get support for the Sensiron SHT10, SHT11,
  	  SHT15, SHT71, SHT75 humidity and temperature sensors.