All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
To: Dan Murphy <dmurphy@ti.com>, pavel@ucw.cz
Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v24 02/16] leds: multicolor: Introduce a multicolor class definition
Date: Mon, 4 May 2020 22:31:23 +0200	[thread overview]
Message-ID: <b33c83a2-4cf1-7137-74d9-7e1cb8b00737@gmail.com> (raw)
In-Reply-To: <20200503123215.6449-3-dmurphy@ti.com>

Dan,

On 5/3/20 2:32 PM, Dan Murphy wrote:
> Introduce a multicolor class that groups colored LEDs
> within a LED node.
> 
> The multi color class groups monochrome LEDs and allows controlling two
> aspects of the final combined color: hue and lightness. The former is
> controlled via the intensity file and the latter is controlled
> via brightness file.
> 
> Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
> Signed-off-by: Dan Murphy <dmurphy@ti.com>
> ---
[...]
> --- a/drivers/leds/Kconfig
> +++ b/drivers/leds/Kconfig
> @@ -30,6 +30,17 @@ config LEDS_CLASS_FLASH
>   	  for the flash related features of a LED device. It can be built
>   	  as a module.
>   
> +config LEDS_CLASS_MULTI_COLOR
> +	tristate "LED MultiColor LED Class Support"
> +	depends on LEDS_CLASS
> +	depends on LEDS_CLASS_MULTI_COLOR || !LEDS_CLASS_MULTI_COLOR

I was saying about adding this dependency to the drivers based on
LED mc class. This way it does not make any sense. Moreover it is
erroneous:

$ make menuconfig
drivers/leds/Kconfig:33:error: recursive dependency detected!

Instead you should add it to the Kconfig entries of all drivers
that depend on LED mc class, i.e.:

- config LEDS_LP50XX
- config LEDS_LP5521
- config LEDS_LP5523

Moreover there are still some checkpatch.pl problems:

---------------------------------------------------------------
0003-leds-multicolor-Introduce-a-multicolor-class-definit.patch
---------------------------------------------------------------
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
#89: FILE: Documentation/leds/leds-class-multicolor.rst:1:
+====================================

ERROR: spaces required around that '=' (ctx:WxO)
#294: FILE: drivers/leds/led-class-multicolor.c:62:
+		ret =-EINVAL;
  		    ^

ERROR: space required before that '-' (ctx:OxV)
#294: FILE: drivers/leds/led-class-multicolor.c:62:
+		ret =-EINVAL;

WARNING: DT binding documents should be licensed (GPL-2.0-only OR 
BSD-2-Clause)
#31: FILE: Documentation/devicetree/bindings/leds/leds-lp50xx.yaml:1:
+# SPDX-License-Identifier: GPL-2.0

WARNING: Block comments use * on subsequent lines
#705: FILE: drivers/leds/leds-lp50xx.c:636:
+		/* There are only 3 LEDs per module otherwise they should be
+		   banked which also is presented as 3 LEDs*/

WARNING: Block comments use a trailing */ on a separate line
#705: FILE: drivers/leds/leds-lp50xx.c:636:
+		   banked which also is presented as 3 LEDs*/


---------------------------------------------------------------
0008-ARM-dts-n900-Add-reg-property-to-the-LP5523-channel-.patch
---------------------------------------------------------------
WARNING: 'accomodate' may be misspelled - perhaps 'accommodate'?

---------------------------------------------------------------
0009-ARM-dts-imx6dl-yapp4-Add-reg-property-to-the-lp5562-.patch
---------------------------------------------------------------
WARNING: 'accomodate' may be misspelled - perhaps 'accommodate'?

---------------------------------------------------------------
0010-ARM-dts-ste-href-Add-reg-property-to-the-LP5521-chan.patch
---------------------------------------------------------------
WARNING: 'accomodate' may be misspelled - perhaps 'accommodate'?


> +	help
> +	  This option enables the multicolor LED sysfs class in /sys/class/leds.
> +	  It wraps LED class and adds multicolor LED specific sysfs attributes
> +	  and kernel internal API to it. You'll need this to provide support
> +	  for multicolor LEDs that are grouped together. This class is not
> +	  intended for single color LEDs. It can be built as a module.
> +


-- 
Best regards,
Jacek Anaszewski

  reply	other threads:[~2020-05-04 20:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-03 12:31 [PATCH v24 00/16] Multicolor Framework v24 Dan Murphy
2020-05-03 12:32 ` [PATCH v24 01/16] dt: bindings: Add multicolor class dt bindings documention Dan Murphy
2020-05-04 19:22   ` Jacek Anaszewski
2020-05-04 19:55   ` [PATCH v25 " Dan Murphy
2020-05-03 12:32 ` [PATCH v24 02/16] leds: multicolor: Introduce a multicolor class definition Dan Murphy
2020-05-04 20:31   ` Jacek Anaszewski [this message]
2020-05-04 20:31     ` Dan Murphy
2020-05-04 21:18   ` kbuild test robot
2020-05-04 21:18     ` kbuild test robot
2020-05-03 12:32 ` [PATCH v24 03/16] dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers Dan Murphy
2020-05-03 12:32 ` [PATCH v24 04/16] leds: lp50xx: Add the LP50XX family of the RGB LED driver Dan Murphy
2020-05-03 12:32 ` [PATCH v24 05/16] dt: bindings: lp55xx: Be consistent in the document with LED acronym Dan Murphy
2020-05-03 12:32 ` [PATCH v24 06/16] dt: bindings: lp55xx: Update binding for Multicolor Framework Dan Murphy
2020-05-03 12:32 ` [PATCH v24 07/16] ARM: dts: n900: Add reg property to the LP5523 channel node Dan Murphy
2020-05-03 12:32 ` [PATCH v24 08/16] ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 " Dan Murphy
2020-05-03 12:32 ` [PATCH v24 09/16] ARM: dts: ste-href: Add reg property to the LP5521 channel nodes Dan Murphy
2020-05-03 12:32 ` [PATCH v24 10/16] leds: lp55xx: Convert LED class registration to devm_* Dan Murphy
2020-05-03 12:32 ` [PATCH v24 11/16] leds: lp55xx: Add multicolor framework support to lp55xx Dan Murphy
2020-05-03 12:32 ` [PATCH v24 12/16] leds: lp5523: Update the lp5523 code to add multicolor brightness function Dan Murphy
2020-05-03 12:32 ` [PATCH v24 13/16] leds: lp5521: Add multicolor framework multicolor brightness support Dan Murphy
2020-05-03 12:32 ` [PATCH v24 14/16] leds: lp55xx: Fix checkpatch file permissions issues Dan Murphy
2020-05-03 12:32 ` [PATCH v24 15/16] leds: lp5523: Fix checkpatch issues in the code Dan Murphy
2020-05-03 12:32 ` [PATCH v24 16/16] dt: bindings: Update lp55xx binding to recommended LED naming Dan Murphy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b33c83a2-4cf1-7137-74d9-7e1cb8b00737@gmail.com \
    --to=jacek.anaszewski@gmail.com \
    --cc=dmurphy@ti.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-leds@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.