]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
HID: logitech-hidpp: select CONFIG_POWER_SUPPLY
authorArnd Bergmann <arnd@arndb.de>
Mon, 11 Jul 2016 21:49:20 +0000 (23:49 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 12 Jul 2016 09:17:40 +0000 (11:17 +0200)
A recent commit added barry support to this driver, but that causes
a link failure when CONFIG_POWER_SUPPLY is not set:

drivers/hid/built-in.o: In function `hidpp_battery_get_property':
:(.text+0x1a834): undefined reference to `power_supply_get_drvdata'
drivers/hid/built-in.o: In function `hidpp_raw_event':
:(.text+0x1b10c): undefined reference to `power_supply_changed'
drivers/hid/built-in.o: In function `hidpp_connect_event':
:(.text+0x1bd88): undefined reference to `devm_power_supply_register'
:(.text+0x1be30): undefined reference to `power_supply_powers'

This adds a dependency, identically to the other HID drivers that need this.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Fixes: 5a2b190cddb9 ("HID: logitech-hidpp: add battery support for HID++ 2.0 devices")
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig

index 5646ca4b95de1cc616be21e163374f1473d41478..820bc73ac058218bf91c054573bf983665b05bb1 100644 (file)
@@ -425,6 +425,7 @@ config HID_LOGITECH_DJ
 config HID_LOGITECH_HIDPP
        tristate "Logitech HID++ devices support"
        depends on HID_LOGITECH
+       select POWER_SUPPLY
        ---help---
        Support for Logitech devices relyingon the HID++ Logitech specification