Skip to contentSkip to conversation

HID: Allow HID_BATTERY_STRENGTH to be enabled

PATCH New Daniel Nicoletti 1 participant 1 message Dec 9, 2014 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: Allow HID_BATTERY_STRENGTH to be enabled

Allows for HID_BATTERY_STRENGTH config be enabled without the need for HID module to be built-in, prior to this HID and POWER_SUPPLY had to be equal, and now we only select POWER_SUPPLY and depend on the HID module.

---
 drivers/hid/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hid/Kconfig +2 -1
index f42df4d..602ac07 100644
@@ -27,7 +27,8 @@ if HID
 
 config HID_BATTERY_STRENGTH
 	bool "Battery level reporting for HID devices"
-	depends on HID && POWER_SUPPLY && HID = POWER_SUPPLY
+	depends on HID
+	select POWER_SUPPLY
 	default n
 	---help---
 	This option adds support of reporting battery strength (for HID devices
Signature · 1 line
2.1.0