Re: [PATCH v2 1/2] dt-bindings: leds: add LED_FUNCTION for wlan2g/wlan5g

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 20 Sep 2020 01:09:49 +0200
"Adrian Schmutzler" <mail@xxxxxxxxxxxxxxxxxxx> wrote:

> > > As far as I understand it, the color/function system does not provide a  
> > comparable lever, as the final name is only constructed in led-core.c?  
> > >  
> > 
> > The files in /sys/class/leds/ are symlinks. The actual files are in /sys/devices/
> > somewhere. If you know the path of your LED in the device hierarchy, you
> > can find it that way. If your script can access the LED by reading device-tree,
> > you can implement your script so that you can find the LED in the hiearchy in
> > /sys/devices/ (or simply byt reading where do the symlinks in
> > /sys/class/leds/ point to).  
> 
> Thanks for that pointer; unfortunately though, I was only able to retrieve lists of leds in [device:]color:function syntax and lists of the DT nodes, but nothing where a single node from DT is linked or can be related to just one of the [device:]color:function identifiers.
> 
> Best
> 
> Adrian
>

Which driver is this? Normally there is of_node symlink in sysfs device
directory...



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux