]> git.baikalelectronics.ru Git - kernel.git/commit
HID: steam: select CONFIG_POWER_SUPPLY
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 May 2018 15:30:51 +0000 (17:30 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 30 May 2018 06:50:05 +0000 (08:50 +0200)
commit6406e8a261075fa8043aae45bb45c6a65b408848
tree1dd7925144b2e8220ccfbbc4229697b24d29efda
parent18fb19c1b83e922b1a3f955c1c5b7d52387cba2c
HID: steam: select CONFIG_POWER_SUPPLY

Using the power supply APIs requires selecting the appropriate
Kconfig symbol, otherwise we get this build failure:

drivers/hid/hid-steam.o: In function `steam_unregister':
hid-steam.c:(.text+0x1cc): undefined reference to `power_supply_unregister'
drivers/hid/hid-steam.o: In function `steam_battery_get_property':
hid-steam.c:(.text+0x2d2): undefined reference to `power_supply_get_drvdata'
drivers/hid/hid-steam.o: In function `steam_raw_event':
hid-steam.c:(.text+0xcba): undefined reference to `power_supply_changed'
drivers/hid/hid-steam.o: In function `steam_register':
hid-steam.c:(.text+0x13e3): undefined reference to `power_supply_register'
hid-steam.c:(.text+0x13fe): undefined reference to `power_supply_powers'

Fixes: d08adf4c6d1c ("HID: steam: add battery device.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig