Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp699009rwl; Sat, 25 Mar 2023 09:19:34 -0700 (PDT) X-Google-Smtp-Source: AKy350ZBietNY22mS67oD+Zun1ST2OtkdGPy4maAgjs+RFHg4FkHYbMcFIbKMUj3d3ZdhFMNkVnK X-Received: by 2002:a17:906:7cc8:b0:932:8dc:5afe with SMTP id h8-20020a1709067cc800b0093208dc5afemr5911567ejp.67.1679761173988; Sat, 25 Mar 2023 09:19:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679761173; cv=none; d=google.com; s=arc-20160816; b=pmhFjBuMbRtbqEvYwHMVJKYufOkwwdV2Ma+tZ2gr7w1ba15/Bg9dt09zY6KsetPqTA MYwc14bilNXZ+FyTqfDzur9jVWC8yEi6xaPB2MPPF51LE8yDVq3/TKDCnra1heTo1TZ6 sM7eEaGxtFX63OWrC+wEQ5LU5dvr7ijiUE2id4nShZ1bfGTZ5IpeySpZ7tQC3CWcqVjW +G9nvjBpxTamipRszRV0WtKonbiWmqvqkQ3wU1L0RgvSa67FRz2AQnsO5Y5jiR8/i4bX cNYUJP+cZhlsxFhBKcZR4fR3PfFrMKN7wGEhceKwdEgusXDoLjvzAB/51xIgv5UDmfQw R30A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0TYQawUAqRpI2Fv/GPDX28AxWWdreTmSldYYgDDUG0I=; b=foHSaBGQQhHvXDEcP7feljP7tia9t61vVji5b28WsnVGq+xn6+mm9zK4QuPy9I3Ysc fh/Dqgu/0xBOjS2KlmV4YHZ3Cz2KqRzQXww9XNRQueNR/vvFiVGKEfCVAJ5ksBTZeAyN //fPtKUg13Z9sz1XajqO/nNgOfM1CS2g8qvSmC6lUxVX3mhj8HFX1lEZgNwou9a5vBUl 52rbqQahguwyT0DeYPpWg9vAUKa5rz3c13pRhBIHolDQTbmwWxipLJatPMzRzRvi3Vto //+laYEk92MlRIk58nfEEJVb1Hy0IDU5X8+Aw8Wo8GGyaPJf7Yuisi4hhBJPR2nyqBJu qilQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b="alBFC/Jm"; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa35-20020a1709076d2300b0093deb6d10a0si5832300ejc.757.2023.03.25.09.19.08; Sat, 25 Mar 2023 09:19:33 -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=@mailbox.org header.s=mail20150812 header.b="alBFC/Jm"; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232018AbjCYQMD (ORCPT + 99 others); Sat, 25 Mar 2023 12:12:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjCYQMB (ORCPT ); Sat, 25 Mar 2023 12:12:01 -0400 X-Greylist: delayed 600 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 25 Mar 2023 09:11:59 PDT Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050:0:465::103]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AAF6E192; Sat, 25 Mar 2023 09:11:58 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4PkNt02rTGz9sSP; Sat, 25 Mar 2023 16:54:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1679759640; 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=0TYQawUAqRpI2Fv/GPDX28AxWWdreTmSldYYgDDUG0I=; b=alBFC/JmyiMbU7N7uiCj0ObhfIIoqEXq5wCZ2KBYvgn37TOTTwKVwQctlx9SXb6AN7UY+U OzAGirY7JxcW6D49j1j/oeCjE+13w9bJu95CCJEMYDk8IXBaf8HyM9101XKykBmhiv1UpA GznyaPrdvGXyIH4FVqZdgTOoBJGPb3yqsMfwXWRLAKDrEpIHIB/hQGzSuAA+K1CVk9Yz+e D2MReC4MZ5AhnPzLkJpwClPylsMCgjzFxhXy7XRcBzVL+oQbW22jt3P7ODYIWVzeQUV7/z Psi8AKtAaFxv4IpMRHhgq2+KXZ81WISz46kOuQsRbU0sMcMTn7Gz7V+gji2q5g== Date: Sat, 25 Mar 2023 10:53:55 -0500 From: Joseph Strauss To: Pavel Machek 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: <20230325155355.gxnjpyl3mnyq2lst@libretux> References: <20221228010958.9670-1-jstrauss@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-MBO-RS-ID: 072ee88ef689a48dbea X-MBO-RS-META: 9rbinopkeat1hthumqcbdhzex87iqowh X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 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. Joe Strauss