UPSTREAM: HID: add Kconfig text to HID_BATTERY_STRENGTH
authorJiri Kosina <jkosina@suse.cz>
Tue, 24 Apr 2012 08:51:30 +0000 (10:51 +0200)
committerChromeBot <chrome-bot@google.com>
Fri, 1 Mar 2013 02:28:44 +0000 (18:28 -0800)
HID_BATTERY_STRENGTH is missing both help text and description text.

BUG=chromium-os:39317
TEST=set CONFIG_HID_BATTERY_STRENGTH=y in base.config. build the
  kernel, and check that this option is enabled in the built kernel

cherry-picked from upstream commit
692d30d63b80b174d0ed24bbffb7a1ea536d5fee
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Change-Id: I2925c344b918e8b03953679ee5f856860fa09aa7
Reviewed-on: https://gerrit.chromium.org/gerrit/44249
Reviewed-by: Olof Johansson <olofj@chromium.org>
Commit-Queue: Yufeng Shen <miletus@chromium.org>
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Tested-by: Yufeng Shen <miletus@chromium.org>
drivers/hid/Kconfig

index ffddcba..a6f6b50 100644 (file)
@@ -32,9 +32,13 @@ config HID
          If unsure, say Y.
 
 config HID_BATTERY_STRENGTH
-       bool
+       bool "Battery level reporting for HID devices"
        depends on HID && POWER_SUPPLY && HID = POWER_SUPPLY
        default n
+       ---help---
+       This option adds support of reporting battery strength (for HID devices
+       that support this feature) through power_supply class so that userspace
+       tools, such as upower, can display it.
 
 config HIDRAW
        bool "/dev/hidraw raw HID device support"