Re: [PATCH] leds: gpio: support multi-level brightness

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

 



On 10/5/19 3:20 PM, Akinobu Mita wrote:
> 2019年10月5日(土) 6:17 Jacek Anaszewski <jacek.anaszewski@xxxxxxxxx>:
>>
>> Hi Akinobu,
>>
>> Why do you think this change is needed? Does it solve
>> some use case for you?
> 
> It can be useful when using with an LED trigger that could set the
> brightness values other than LED_FULL or LED_OFF.
> 
> The LED CPU trigger for all CPUs (not per CPU) sets the brightness value
> depending on the number of active CPUs.  We can define the multi brightness
> level gpio LED with fewer number of GPIO LEDs than the total number of
> CPUs, and the LEDs can be viewed as a level meter.

Can't you achieve exactly the same effect by creating separate LED class
device for each GPIO LED and registering each of them for separate cpuN
trigger?

-- 
Best regards,
Jacek Anaszewski



[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