• Arnd Bergmann's avatar
    HID: logitech-hidpp: select CONFIG_POWER_SUPPLY · 351744aa
    Arnd Bergmann authored
    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: default avatarArnd Bergmann <arnd@arndb.de>
    Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
    Fixes: 5a2b190c ("HID: logitech-hidpp: add battery support for HID++ 2.0 devices")
    Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
    351744aa
Kconfig 27.4 KB