Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11321459rwd; Thu, 22 Jun 2023 11:37:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hF6Uqz79cGZC0qUbkZhGqMMC9uPzUsGSlHUWpjEBjtcMvkLBGnPirqMQu4QMgNsosg5jR X-Received: by 2002:a17:902:db0e:b0:1b6:9b29:bb1a with SMTP id m14-20020a170902db0e00b001b69b29bb1amr3978916plx.9.1687459047668; Thu, 22 Jun 2023 11:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687459047; cv=none; d=google.com; s=arc-20160816; b=KSmoyfdqiVwrtLp/NXhZijfCRh5vpMl4EC2wvwRQkKReHMvXmO48GOQCX5limIdsVf AYus0YIoptDRW+JgsNo8iZr7hRaI5ys7PerJc0gZUTrZssHgsQuti5YBu3TIT0E9GeNS 7izqs8PQ7wJjXAhhv4tp8tJ83W3EM2Kz7GZicH8eHF3yLDi5J2H14CT0YTx4Joub0Lo2 7X4tMKeG3W42DVddPbGDUW55DbRDXYmeGW78vBg4oNkFTLls9HZxRfjLdsSsPo1kTJFU 2I71OdSVILbatYYpzgGMIz19Dnbw4oB6wzuKaaoqT9WEpofSsIdRM7vSQPKTvnU7+7VK teeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=UamfjZV3zwkEBCSnH0Fis0v1qmDXfaERTFgaCV/W4bk=; b=k8x3Xrw38FheVefe5ipn4lNcPfSJQpHSn1DG9YMHEZY0GU5PQ+f4VXvQQbB8Ahkcb+ 9tNVnAS47wBz24r2C5rbEpZjt4KSp0lX0lY/kTzSOcwxjuhG8UQyLbY6hRsPTqBRJvbS Ba0rtV8HCQmFi01nwBrSYe9YxPY32WbBfQOosD8jHLQC0l1o02AEIpzrdohu+KqyTer8 ZZSbhsORN+h60XeYe8LH6oXEWMXeeCmXh+WDI+kSRr6DZnTbMgHHm3vBM9nYizv8oWIT IklXZY+4LaYso8Ae05vGF3M9LWhUwr8mRUQ0+JGSAAzPJzjQAp9WdAukPBNzFwqsaPej 87OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e18-20020a17090301d200b001b54503ab4bsi7829809plh.569.2023.06.22.11.36.52; Thu, 22 Jun 2023 11:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbjFVS0L (ORCPT + 99 others); Thu, 22 Jun 2023 14:26:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbjFVS0J (ORCPT ); Thu, 22 Jun 2023 14:26:09 -0400 X-Greylist: delayed 1802 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 22 Jun 2023 11:26:04 PDT Received: from 6.mo563.mail-out.ovh.net (6.mo563.mail-out.ovh.net [46.105.55.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8182B2111 for ; Thu, 22 Jun 2023 11:26:04 -0700 (PDT) Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net [79.137.60.37]) by mo563.mail-out.ovh.net (Postfix) with ESMTPS id 32F02239B6; Thu, 22 Jun 2023 17:49:13 +0000 (UTC) Received: from director4.derp.mail-out.ovh.net (director4.derp.mail-out.ovh.net. [127.0.0.1]) by director4.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for ; Thu, 22 Jun 2023 17:49:13 +0000 (UTC) Received: from pro2.mail.ovh.net (unknown [10.108.20.246]) by director4.derp.mail-out.ovh.net (Postfix) with ESMTPS id 1D0591FE6D; Thu, 22 Jun 2023 17:49:13 +0000 (UTC) Received: from [192.168.1.41] (88.161.25.233) by DAG1EX1.emp2.local (172.16.2.1) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 22 Jun 2023 19:49:12 +0200 Message-ID: Date: Thu, 22 Jun 2023 19:49:12 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v9 5/5] leds: Add a multicolor LED driver to group monochromatic LEDs To: Lee Jones CC: , , , , , , References: <20230616095746.872220-1-jjhiblot@traphandler.com> <20230616095746.872220-6-jjhiblot@traphandler.com> <20230621193321.GU10378@google.com> Content-Language: en-US From: Jean-Jacques Hiblot In-Reply-To: <20230621193321.GU10378@google.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [88.161.25.233] X-ClientProxiedBy: DAG3EX1.emp2.local (172.16.2.21) To DAG1EX1.emp2.local (172.16.2.1) X-Ovh-Tracer-Id: 9914956058122861019 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrgeeguddgudduiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgihesthejredttdefjeenucfhrhhomheplfgvrghnqdflrggtqhhuvghsucfjihgslhhothcuoehjjhhhihgslhhothesthhrrghphhgrnhgulhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepieejfedukeevudfghfetudevhffhhfekjeeiudegtdehueevgfdvgeeivdeifedvnecukfhppedtrddtrddtrddtpdekkedrudeiuddrvdehrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopeguihhrvggtthhorhegrdguvghrphdrmhgrihhlqdhouhhtrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehjjhhhihgslhhothesthhrrghphhgrnhgulhgvrhdrtghomhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhlvggushesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheeife X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/06/2023 21:33, Lee Jones wrote: > On Fri, 16 Jun 2023, Jean-Jacques Hiblot wrote: > >> create mode 100644 drivers/leds/rgb/leds-group-multicolor.c > > Sorry to do this too you, but there are too many nits that I can't pass by. That's alright. I'll fix them in the next (hopefully last) round > >> + /* Restore sysfs access when the multicolor LED is released */ > > Out of interest, why are we doing this? To prevent the user to play with the individual LEDs of the group, their sysfs interface is disabled (read-only). The interface must be re-enabled when the group is destroyed. > >> + devm_add_action_or_reset(dev, restore_sysfs_access, led_cdev); >> + } >> + >> + return 0; >> +} >> + >> +static const struct of_device_id of_led_group_multicolor_match[] = { > > "leds" > >> + { .compatible = "leds-group-multicolor" }, >> + {} >> +}; >> +MODULE_DEVICE_TABLE(of, of_led_group_multicolor_match); >> + >> +static struct platform_driver led_group_multicolor_driver = { > > "leds" > >> + .probe = led_mcg_probe, >> + .driver = { >> + .name = "leds_group_multicolor", >> + .of_match_table = of_led_group_multicolor_match, >> + } >> +}; >> +module_platform_driver(led_group_multicolor_driver); >> + >> +MODULE_AUTHOR("Jean-Jacques Hiblot "); >> +MODULE_DESCRIPTION("LEDs group multicolor driver"); >> +MODULE_LICENSE("GPL"); >> +MODULE_ALIAS("platform:leds-group-multicolor"); >> -- >> 2.34.1 >> >