Re: [PATCH v2 leds-next 3/3] leds: turris-omnia: Add support for continuous brightness

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

 



>   (
>     The last two control "global brightness" for all LEDs. The
> resulting brigthness of LED X channel C is (i dont know if this is
> really linear, but suppose it is):
>       global_brightness * X_C_brightness * X_enabled
> 
>     So for example the resulting brightness of the red channel of WAN
>     LED is
>       global_brightness * WAN_red_brightness * WAN_enabled
> 
>     This "global brightness" can be set via command 7, or by hardware
>     when user presses a button (hardware cycles through 8 levels of
>     hardcoded values each time the button is pressed).
>   )

Jacek, Pavel,

should I, and if, then how, expose to the user this global_brightness?

I thought about merging this with classic led brightness and writing a
->brightness_get method which would query the global brightness and
then multiply it with the ->brightness which was set, but there is no
way for setting brightness this way, because changing brightness of one
LED could change brightnesses of other LEDs...

Marek



[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