[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <MIxm3uX--3-2@tutanota.com>
Date: Tue, 6 Oct 2020 13:59:57 +0200 (CEST)
From: ultracoolguy@...anota.com
To: Marek Behun <kabel@...ckhole.sk>
Cc: Pavel <pavel@....cz>, Dmurphy <dmurphy@...com>,
Linux Leds <linux-leds@...r.kernel.org>,
Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] leds: lm3697: Fix out-of-bound access
While I do agree with you that having the child nodes be led strings make more sense, would it be possible to have, for example, three strings controlled by the same label?
Oct 6, 2020, 07:33 by kabel@...ckhole.sk:
> By the way I just realized that the DT binding in this driver seems
> incorrect to me.
>
> The controller logically supports 3 LED strings, each having
> configurable control bank.
>
> But the DT binding supports 2 DT nodes, one for each control bank
> (identified by the `reg` property) and then `led-sources` says which
> string should be controlled by given bank.
>
> But taking in mind that DT should describe how devices are connected to
> each other, I think the child nodes in the binding should instead
> describe the 3 supported LED strings...
>
> Marek
>
Powered by blists - more mailing lists