All of lore.kernel.org
 help / color / mirror / Atom feed
* Possible Sysfs for led class drivers
@ 2016-08-11 13:27 ` Raul Piper
  0 siblings, 0 replies; 4+ messages in thread
From: Raul Piper @ 2016-08-11 13:27 UTC (permalink / raw)
  To: linux-leds, kernelnewbies

Hi,
I have scanned through some of the led sysfs interfaces of my hardware
boards inside the /sys/class/leds and found these
brightness,
max_brightness
trigger
uevent
invert
sata

I want to know can we add our own custom sysfs interface ?
Does there exists a default list of interfaces provided by the led
class subsystem? like brightness, max_brightness,trigger,uevent ,etc??

Thanks in advance !
Rgds
Rp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Possible Sysfs for led class drivers
@ 2016-08-11 13:27 ` Raul Piper
  0 siblings, 0 replies; 4+ messages in thread
From: Raul Piper @ 2016-08-11 13:27 UTC (permalink / raw)
  To: kernelnewbies

Hi,
I have scanned through some of the led sysfs interfaces of my hardware
boards inside the /sys/class/leds and found these
brightness,
max_brightness
trigger
uevent
invert
sata

I want to know can we add our own custom sysfs interface ?
Does there exists a default list of interfaces provided by the led
class subsystem? like brightness, max_brightness,trigger,uevent ,etc??

Thanks in advance !
Rgds
Rp

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Possible Sysfs for led class drivers
  2016-08-11 13:27 ` Raul Piper
@ 2016-08-11 20:38   ` Jacek Anaszewski
  -1 siblings, 0 replies; 4+ messages in thread
From: Jacek Anaszewski @ 2016-08-11 20:38 UTC (permalink / raw)
  To: Raul Piper, linux-leds, kernelnewbies

Hi Raul,

On 08/11/2016 03:27 PM, Raul Piper wrote:
> Hi,
> I have scanned through some of the led sysfs interfaces of my hardware
> boards inside the /sys/class/leds and found these
> brightness,
> max_brightness
> trigger
> uevent
> invert
> sata
>
> I want to know can we add our own custom sysfs interface ?
> Does there exists a default list of interfaces provided by the led
> class subsystem? like brightness, max_brightness,trigger,uevent ,etc??

You can add custom sysfs attributes by initializing "groups" property
of struct led_classdev.

-- 
Best regards,
Jacek Anaszewski

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Possible Sysfs for led class drivers
@ 2016-08-11 20:38   ` Jacek Anaszewski
  0 siblings, 0 replies; 4+ messages in thread
From: Jacek Anaszewski @ 2016-08-11 20:38 UTC (permalink / raw)
  To: kernelnewbies

Hi Raul,

On 08/11/2016 03:27 PM, Raul Piper wrote:
> Hi,
> I have scanned through some of the led sysfs interfaces of my hardware
> boards inside the /sys/class/leds and found these
> brightness,
> max_brightness
> trigger
> uevent
> invert
> sata
>
> I want to know can we add our own custom sysfs interface ?
> Does there exists a default list of interfaces provided by the led
> class subsystem? like brightness, max_brightness,trigger,uevent ,etc??

You can add custom sysfs attributes by initializing "groups" property
of struct led_classdev.

-- 
Best regards,
Jacek Anaszewski

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-11 20:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-11 13:27 Possible Sysfs for led class drivers Raul Piper
2016-08-11 13:27 ` Raul Piper
2016-08-11 20:38 ` Jacek Anaszewski
2016-08-11 20:38   ` Jacek Anaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.