Thread (27 messages) 27 messages, 6 authors, 2019-04-04

Re: [RESEND PATCH v6 09/11] leds: max77650: add LEDs support

From: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Date: 2019-03-22 19:40:54
Also in: linux-devicetree, linux-gpio, linux-leds, linux-pm, lkml

On 3/22/19 10:53 AM, Bartosz Golaszewski wrote:
pt., 22 mar 2019 o 10:21 Pavel Machek [off-list ref] napisał(a):
quoted
On Mon 2019-03-18 18:42:26, Bartosz Golaszewski wrote:
quoted
From: Bartosz Golaszewski <redacted>

This adds basic support for LEDs for the max77650 PMIC. The device has
three current sinks for driving LEDs.

Signed-off-by: Bartosz Golaszewski <redacted>
Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Acked-by: Pavel Machek <redacted>
quoted
+             label = of_get_property(child, "label", NULL);
+             if (!label) {
+                     led->cdev.name = "max77650::";
+             } else {
+                     led->cdev.name = devm_kasprintf(dev, GFP_KERNEL,
+                                                     "max77650:%s", label);
+                     if (!led->cdev.name)
+                             return -ENOMEM;
+             }
I'd rather not have the "max77650:" prefix in the LED name (as it is
useless).
I was instructed to do so by the LED subsystem maintainer.
Yes, let's keep things consistent, we will convert it to use generic
support for LED naming once that support is merged.

-- 
Best regards,
Jacek Anaszewski
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help