HID: nvidia-shield: Select POWER_SUPPLY Kconfig option
authorRahul Rameshbabu <rrameshbabu@nvidia.com>
Sun, 17 Sep 2023 15:18:50 +0000 (08:18 -0700)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Oct 2023 18:48:20 +0000 (20:48 +0200)
Battery information reported by the driver depends on the power supply
subsystem. Select the required subsystem when the HID_NVIDIA_SHIELD Kconfig
option is enabled.

Fixes: 3ab196f88237 ("HID: nvidia-shield: Add battery support for Thunderstrike")
Signed-off-by: Rahul Rameshbabu <rrameshbabu@nvidia.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig

index c72459d..790aa90 100644 (file)
@@ -800,6 +800,7 @@ config HID_NVIDIA_SHIELD
        depends on USB_HID
        depends on BT_HIDP
        depends on LEDS_CLASS
+       select POWER_SUPPLY
        help
          Support for NVIDIA SHIELD accessories.