lkml.org 
[lkml]   [2022]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] dt-bindings: leds: Mark label property as deprecated
On Fri, Nov 25, 2022 at 10:26:30PM +0100, Marek Vasut wrote:
> On 11/22/22 13:23, Pavel Machek wrote:
> > Hi!
>
> Hi,
>
> > > Mark the label property as deprecated as it is mentioned
> > > in the description.
> >
> > Lets do it the other way around. Functions (etc) don't really provide
> > good enough description of LED, and label is still needed.
>
> Can you please provide a clear explanation which property or approach is the
> correct one for new DTs ?
>
> So far, the documentation states that "label" is deprecated, and users
> should replace it with "function" and "color".

'function' is what activity/operation the LED is associated with. It is
a fixed set of strings which s/w may use. It is a replacement for
'linux,default-trigger'.

'label' is what is printed next to the LED for a human to read. 'label'
can be anything and the OS shouldn't care what it is.


They serve 2 different purposes.

Rob

\
 
 \ /
  Last update: 2022-11-30 20:20    [W:1.829 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site