HID: hid-led: fix maximum brightness for Dream Cheeky
authorJonathan Teh <jonathan.teh@outlook.com>
Sun, 13 Mar 2022 19:48:18 +0000 (19:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 14:53:48 +0000 (16:53 +0200)
[ Upstream commit 116c3f4a78ebe478d5ad5a038baf931e93e7d748 ]

Increase maximum brightness for Dream Cheeky to 63. Emperically
determined based on testing in kernel 4.4 on this device:

Bus 003 Device 002: ID 1d34:0004 Dream Cheeky Webmail Notifier

Fixes: 6c7ad07e9e05 ("HID: migrate USB LED driver from usb misc to hid")
Signed-off-by: Jonathan Teh <jonathan.teh@outlook.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-led.c

index d3e1ab162f7c6ade6e2a83053ec1d719f1a08daa..7fc5982a0ca490b22a30ba4a9be756ca492b5793 100644 (file)
@@ -369,7 +369,7 @@ static const struct hidled_config hidled_configs[] = {
                .type = DREAM_CHEEKY,
                .name = "Dream Cheeky Webmail Notifier",
                .short_name = "dream_cheeky",
-               .max_brightness = 31,
+               .max_brightness = 63,
                .num_leds = 1,
                .report_size = 9,
                .report_type = RAW_REQUEST,