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]

 



> > 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

> 
> Marek

Attachment: openpgp-digital-signature.asc
Description: PGP signature


[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