]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (sht15) Select CONFIG_BITREVERSE
authorArnd Bergmann <arnd@arndb.de>
Fri, 18 Dec 2015 14:52:28 +0000 (15:52 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 18 Dec 2015 16:19:52 +0000 (08:19 -0800)
commitcb2288bae150b0d9b759d9f215263d8c3bd6f23d
treea063a677f99bfa89afa3b1fbe15882e320a46bd6
parent8b355dfc9df444e480c44ef5052061a0154860a5
hwmon: (sht15) Select 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.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 825780ff1814 ("hwmon:change sht15_reverse()")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/Kconfig