From patchwork Sun Mar 13 19:48:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Teh X-Patchwork-Id: 12779469 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F11D5C433EF for ; Sun, 13 Mar 2022 19:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235389AbiCMTuP (ORCPT ); Sun, 13 Mar 2022 15:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbiCMTuO (ORCPT ); Sun, 13 Mar 2022 15:50:14 -0400 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-oln040092067049.outbound.protection.outlook.com [40.92.67.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88BF755BF3 for ; Sun, 13 Mar 2022 12:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vk/0ekT0f8wahDXiJPgUqXHB/+oOPZD0ds/3ynLYsdisw6vFQvKVmanP8kyz4tKw7SCb+5fAiLXqH9HpTiC6lIrrUPYU7RjVpGCWgqQCXCNi57ZXjLwoXFRf9VYqHIK0uSNGSvMhR2+R0cMTZ64/eVx6frekCgaEFU5muskV1AiqbU8W/6/0zKl951sRPXKtCzPnz34Iw30511ShqrW9mOIdl0m/WZRDVdTQWklWkRjmkz6DQRay6WTs3DB3gdLg1UGmjl6LhisQ79P+wQz/p/DahHtN0gzwCejsLz7xAnuF/79jZQebTttaCyPXXsFhA63oHak4Kptdy9MqKwMGWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LWzeuw5eRzcK1gkRodYvAy9TFTl964gIaBPWu54T3pQ=; b=AxBa+xcj/UGiUQSvbQsvr48X8LSgXTLQG05EzqULA3FwvQzTlj4ce8WRjiKV2IjB/cBoWzI53OYsxqicEKCIxcVG802P0L4azXIdyATilJviunSbt6iNDD5TtMM/Ij4eRBCV8aUFhReOHQzIWPP5seJXVSEiu1H/yyFly9tVEHbVKHQe2kz2wJVZWFspWq4oKFU9RbwJ2ge+F96HSe3PfmXRrb2CtMuL6PNiTApj9oyo9otiDFCMg+A2ZQ432QbyhPbzCXocbTAVUSuUkiwSyZT3+qn5Ss3ioGQzA8CfKf8s7Qs1ScRJGkputntPnGMN4q1zKaBv76iGJ58uUc+ZYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LWzeuw5eRzcK1gkRodYvAy9TFTl964gIaBPWu54T3pQ=; b=aq5Twb7nMOEZsXJrX97SxDr2KBv3V8GMzIQGudwQWsR5dtm5DTtdaCjUs48OSK5zQLCrhIdKDbsYXad0/5Pf5B1/MaaV7pAg/YM1D2B2hUxv/7NdH8Oi8wS7ntFThqM42yb2gx16eRoPmYs28cI+tesm+rjtEq2EnKwc5VZZXBr/7OT56PVDyYAVD3ECaNQLQch/b9qqrwcmq0UCo9fx3B/ovVdYZud7aKnphO2me46uxnfRDV3xd2ojdbfHIsfHShdJ3aDMI9nThO2TgQxdjJcBrHDmc/Jk3Lb7OFAQ/AzovlDxFk1nV1Z0azPzzU8P8MVDVR+D5wpo4kW6acZCtg== Received: from DBAPR04MB7366.eurprd04.prod.outlook.com (2603:10a6:10:1a0::23) by PA4PR04MB8030.eurprd04.prod.outlook.com (2603:10a6:102:cc::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.28; Sun, 13 Mar 2022 19:49:03 +0000 Received: from DBAPR04MB7366.eurprd04.prod.outlook.com ([fe80::cde2:76e6:f208:6d18]) by DBAPR04MB7366.eurprd04.prod.outlook.com ([fe80::cde2:76e6:f208:6d18%6]) with mapi id 15.20.5061.026; Sun, 13 Mar 2022 19:49:03 +0000 From: Jonathan Teh To: linux-input@vger.kernel.org Cc: Benjamin Tissoires , Jiri Kosina , Heiner Kallweit , Jonathan Teh Subject: [PATCH] HID: hid-led: fix maximum brightness for Dream Cheeky Date: Sun, 13 Mar 2022 19:48:18 +0000 Message-ID: X-Mailer: git-send-email 2.35.1 X-TMN: [p7uatvXXH/0UKPQqGfqfj1FI7PlioOnx] X-ClientProxiedBy: LO2P265CA0296.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:a5::20) To DBAPR04MB7366.eurprd04.prod.outlook.com (2603:10a6:10:1a0::23) X-Microsoft-Original-Message-ID: <20220313194818.13768-1-jonathan.teh@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81ef8d79-290e-48c8-ae85-08da052a86c4 X-MS-Exchange-SLBlob-MailProps: tBYDyRQCPclfnH/0UAfOFg3VcfzM92AUK3/tqtBfiAvTZ+0smU3iArrJS4yZSy2zEJkrGqgNqTvtAKTSKayCtrOGRXF2hQEJyRqerNnDnBnnFYXrXsYOfHICUFDwTsQsj/x9umB1d6/qy6mIDpczVCyx5yNFwNZvl3HH+0HFSrndlxWZMRtNDIltRNlgZmgdDpvb61Twj7EZoYgYogixW5v1IM6bIyWupwYpFNSRm5b9KPahQT8pKcJUJp3wzUnB3pSl0/Kz4J0EE4C0MzcdjX85kQE97icijVQR6MhFpgXjVvXlKxmVdsNMjWPERq6vtJyceWX7FyfaFoz9cllmEirz1BEVsrsShdd0bckmp496eec1w9heC49+H1yMKLgv355/zH/IHZVIxaGhxvK4TeCf9vAIf8lkfvMBQKOlp5lAhk9XvjvFjj3siYij4BNprP0DBi1bu2YiyutwbbMHYbzkAcSwpjYmQxhAILDSP75TA1U1kgrSFtXl2vEVPaqEYsDXDw9Q7DGh/jpLuMSSrrsHyKapm4XarTvAHvmuTyswgkqLlROK2uESHVL/g/GNS25tRWP0QfsFdZpa5pQjuVzgDnAO3Hw752tYUxhp3W6sYQL5OTXHTqfwDNouUi2pPL1X+k2N/vFY4a2s+MWwspujbHCSsqrbDNjG+haZn/OkgUTihz1QE0Gvy8RpDDreoC8wsaqjTcik+riJA7p/CAXOgph4dsFWUM/IAaheIDlenrOji3Et1ygJIdVbA7LyLOQKfDrKZdw= X-MS-TrafficTypeDiagnostic: PA4PR04MB8030:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: I4AHFcmwrHLHmza3eK7iZl73FvZL6PSWzdcnZyQFXXfuF8n+SoOfBIfLGG/I8lPdNq9RByIWEKUdked8QQnibbUcBWn7ncwbeyh4M7syJhUFT2rW3HqY85mO5ZqK462HYZqvbKQQ3Kcm77TJFTu0wqfYmAHiCchmT+C56pSepfEtc9LavaChoaGWB2PRRD2iNcWSS4Jez/a47AJ/Ii7lSEbR11eEDR5n9fh7/iBo43rMbM7A3TtHvzWEtlhMn/NW7kDRbbB9s2wSIDZ2zka35QPP++CbVupuYWjyCRDxjihlaNs8K31zZ1RtsnUem5PF5utbBA1DxI5kgqzjhbkU496jJyfL1zGTCupZC5St4JVfPtvRkT7MMx6XonVLymoM5fIokKch0Zc4GTDmoxQqu09YMZOAZDB0eyAGAoyGiz2IenTU9CEzAciLnb4oNJhWe+4lIJ30pFKfGNBkrDf1Qi3zA4cEkC7bBBeMP/rngzKet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4cBcHUQSIXej/YtFoEJUvxp8WkW45fqNrw9oE0VTyAA1h2CbrIXlE3Joubmdo6mPYIdkoy6NmCA87fu6JC2nOyzYuPTHQpRe/cdiZYelITAImtbaswgrwzhZxajsEwuo4lWj3y8RZbF8asorHy6WB8ZXS5dA3aOT9+Du2DrfVU5HJiOqeBGDa67pQQSG8mbybwdHIShmAZNQw6RqCKEB/bAzB3gL9KAszetg+3AAXYiM6902nbAcQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81ef8d79-290e-48c8-ae85-08da052a86c4 X-MS-Exchange-CrossTenant-AuthSource: DBAPR04MB7366.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2022 19:49:03.5865 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB8030 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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 --- drivers/hid/hid-led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-led.c b/drivers/hid/hid-led.c index c2c66ceca132..7d82f8d426bb 100644 --- a/drivers/hid/hid-led.c +++ b/drivers/hid/hid-led.c @@ -366,7 +366,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,