diff mbox

HID: Allow HID_BATTERY_STRENGTH to be enabled

Message ID 1418824434-12947-1-git-send-email-dantti12@gmail.com (mailing list archive)
State New, archived
Delegated to: Jiri Kosina
Headers show

Commit Message

Daniel Nicoletti Dec. 17, 2014, 1:53 p.m. UTC
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.

Signed-off-by: Daniel Nicoletti <dantti12@gmail.com>
---
 drivers/hid/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Jiri Kosina Dec. 17, 2014, 4:25 p.m. UTC | #1
On Wed, 17 Dec 2014, Daniel Nicoletti wrote:

> 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.
> 
> Signed-off-by: Daniel Nicoletti <dantti12@gmail.com>

Sorry for this taking too long. Now applied, thanks.
diff mbox

Patch

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index f42df4d..602ac07 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -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