Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp700108rwl; Sat, 25 Mar 2023 09:20:42 -0700 (PDT) X-Google-Smtp-Source: AKy350bzBJqTvK1R76jkPsDinWRnvtWiue/ePJnikBc8ACvmNPSDgCf83FO3EAOLc0u5k0Ikd+Zo X-Received: by 2002:a17:906:ac1:b0:90b:167e:304b with SMTP id z1-20020a1709060ac100b0090b167e304bmr6658582ejf.45.1679761241791; Sat, 25 Mar 2023 09:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679761241; cv=none; d=google.com; s=arc-20160816; b=OlDQKRsPe43Wf+UIBV0QKt6/MxR1qn837a74Dz/eRHefIcb1fJbKu95jRbE1gQykrz 8KV8fhTJP+dRXkQW4OvSjoII6TT6zltnUjUHbRZPCwblyA9b55HebC5hLzRPlUPOtCKL 7bzV22QhM+Lff3r+yZzTY98qBoTY25YtWX3LJDxpsHfYnQvqaYYoTCrbvlwhrpRpF9pR LtleqGJQVCMYBOtHY5M9wlv/nxwK02xUTsNerXhB8avE3mpENPU8qm8tiSTvoG44vErC 7tBspUk4fyieGx3AlWDgpm9qtEgyTauvLDjTvNrkwh53XuPewIoRIdyxiDIGuUXPlF7u ZPUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kcU/9fFXfNqYOTgmAwmcaMU+wBoR0qh6jAjCJEANVdg=; b=FMiBnMS7vHE69iW075zK9Dka/iLm1nkZ3D6OfAm6YWNKiq5jtCkODcD61TwtQYdQgV NVZkC/wsMXO9eBXVVSUaGcXUjzlj52ImHx45AZ0GtZuV2YU0cdN3rahWyTb+Rft8dWTg Vmum+UzDxPUlODnbqN1QaL5I8F9LSY1Ev9zWT5doXy/RFFHOo/PeUw2XEvIlBZdVDiHS NZbjtNstoptPmppmSzZ/fzkGGWMrAVG26cBqdoc+T70bVo3csVyZZNoYgcjbX3Jz+gMD pQz2hljKnYGm2Eip6Uar5eMb62Y6v4LwuQdjwnsk0qRtb/oHK61BMcDG+3Lbp3bWS775 Qa4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=JMM6sAZi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020aa7d44b000000b004acccbad706si25075121edr.194.2023.03.25.09.20.16; Sat, 25 Mar 2023 09:20:41 -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; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=JMM6sAZi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232008AbjCYQJw (ORCPT + 99 others); Sat, 25 Mar 2023 12:09:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjCYQJv (ORCPT ); Sat, 25 Mar 2023 12:09:51 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C9C4E192; Sat, 25 Mar 2023 09:09:50 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 1F5A91C0AB3; Sat, 25 Mar 2023 17:09:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1679760589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=kcU/9fFXfNqYOTgmAwmcaMU+wBoR0qh6jAjCJEANVdg=; b=JMM6sAZiMnfxahJFdVg7uY5hYAP3wcePo4ugVmHCqi+5g8UHeL8prGdDXt7+1myv6fasXZ LDxZITyNWCwzsvV7Cvnkpm5GB+hTv2Oj7sa4Y1CFNhhWoiF/Ti9/c8oTveFbWQCT2BaTU5 4H0uqKx/Baniawwt/+ncjQ0aZgp/nVs= Date: Sat, 25 Mar 2023 17:09:46 +0100 From: Pavel Machek To: Joseph Strauss Cc: lee@kernel.org, jansimon.moeller@gmx.de, conor@kernel.org, christophe.jaillet@wanadoo.fr, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Add multicolor support to BlinkM LED driver Message-ID: <20230325160946.GC1820@bug> References: <20221228010958.9670-1-jstrauss@mailbox.org> <20230325155355.gxnjpyl3mnyq2lst@libretux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230325155355.gxnjpyl3mnyq2lst@libretux> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 Sat 2023-03-25 10:53:55, Joseph Strauss wrote: > On 23/03/23 12:33PM, Pavel Machek wrote: > > Hi! > > > > > In the blinkm_probe function, the multicolor LED class is registered > > > after the regular LED classes. The blinkm_set_mc_brightness() function > > > had to be added to calculate the three color components and then set the > > > fields of the blinkm_data structure accordingly. > > > > It needs to be either single multicolor LED or three separate > > LEDs. But not both at the same time. > > > > Thank you for the feedback! How would you suggest I go about handling > this? Is there a preferred way to ask the user which way they want to > control the LED (Kconfig?), or should I remove the code for three > separate LEDs entirely? Originally, I didn't delete the code because I > thought it would be bad to remove the existing interface. It kind of is bad. ... but hopefully blinkm users can adjust. You could do Kconfig if it was easy. BR, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html