lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250519221500.1796d4be@booty>
Date: Mon, 19 May 2025 22:15:00 +0200
From: Luca Ceresoli <luca.ceresoli@...tlin.com>
To: Herve Codina <herve.codina@...tlin.com>
Cc: Lee Jones <lee@...nel.org>, Daniel Thompson <danielt@...nel.org>, Jingoo
 Han <jingoohan1@...il.com>, Helge Deller <deller@....de>, Tony Lindgren
 <tony@...mide.com>, Pavel Machek <pavel@....cz>, Jean-Jacques Hiblot
 <jjhiblot@...com>, Tomi Valkeinen <tomi.valkeinen@...com>, Saravana Kannan
 <saravanak@...gle.com>, Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
 Daniel Thompson <daniel.thompson@...aro.org>,
 dri-devel@...ts.freedesktop.org, linux-fbdev@...r.kernel.org,
 linux-kernel@...r.kernel.org, Alexander Sverdlin
 <alexander.sverdlin@...il.com>
Subject: Re: [PATCH v5] backlight: led-backlight: add devlink to supplier
 LEDs

Hi Hervé,

On Mon, 19 May 2025 17:47:29 +0200
Herve Codina <herve.codina@...tlin.com> wrote:

> Hi Luca,
> 
> On Mon, 19 May 2025 17:16:39 +0200
> Luca Ceresoli <luca.ceresoli@...tlin.com> wrote:
> 
> ...
> 
> > diff --git a/drivers/video/backlight/led_bl.c b/drivers/video/backlight/led_bl.c
> > index d2db157b2c290adc3a159023e9e2394fc877388c..8fe645b5b75447d009e1045dcf0c62d3bbc5425e 100644
> > --- a/drivers/video/backlight/led_bl.c
> > +++ b/drivers/video/backlight/led_bl.c
> > @@ -209,6 +209,19 @@ static int led_bl_probe(struct platform_device *pdev)
> >  		return PTR_ERR(priv->bl_dev);
> >  	}
> >  
> > +	for (i = 0; i < priv->nb_leds; i++) {
> > +		struct device_link *link;
> > +
> > +		link = device_link_add(&pdev->dev, priv->leds[0]->dev->parent,  
> 
> It should be priv->leds[i]->dev->parent instead of leds[0], shouldn't it?

Ah, well spotted, thanks!

My led-backlight device only uses one LED, so I hadn't noticed during
testing.

v6 on its way.

Luca

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ