diff mbox series

HID: steam: select CONFIG_POWER_SUPPLY

Message ID 20180525153118.3015806-1-arnd@arndb.de
State Accepted
Commit 4b64487fa63a71bbed883b55268ea275da6f8a7a
Headers show
Series HID: steam: select CONFIG_POWER_SUPPLY | expand

Commit Message

Arnd Bergmann May 25, 2018, 3:30 p.m. UTC
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: f82719790751 ("HID: steam: add battery device.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 drivers/hid/Kconfig | 1 +
 1 file changed, 1 insertion(+)

-- 
2.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Jiri Kosina May 30, 2018, 6:50 a.m. UTC | #1
On Fri, 25 May 2018, Arnd Bergmann wrote:

> 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: f82719790751 ("HID: steam: add battery device.")

> Signed-off-by: Arnd Bergmann <arnd@arndb.de>


Applied, thanks.

-- 
Jiri Kosina
SUSE Labs

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 8a865e3ccea6..a49a10437c40 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -848,6 +848,7 @@  config HID_SPEEDLINK
 config HID_STEAM
 	tristate "Steam Controller support"
 	depends on HID
+	select POWER_SUPPLY
 	---help---
 	Say Y here if you have a Steam Controller if you want to use it
 	without running the Steam Client. It supports both the wired and