Re: [PATCH] leds: Don't emit brightness set error message if LED supports hw triggers only

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

 



On Mon, 1 Nov 2021 12:59:10 +0100
Pavel Machek <pavel@xxxxxx> wrote:

> Hi!
> 
> 
> > Working on a driver for specific network LEDs that support HW
> > triggers only I got error "Setting an LED's brightness failed" when
> > switching to a different trigger. This is caused by call
> > led_set_brightness(led_cdev, LED_OFF) in led_trigger_set() because
> > both brigthness_set callbacks are not implemented. Let's suppress
> > the error message in that case.  
> 
> Hmm... do we have such LEDs in tree? LED supporting only hardware
> triggers is kind of unusual/interesting/and I'm not really sure if we
> should have them in LED subsystem.

Why not? I mean there actually are such LEDs and the LED subsystem is
the best fit for them. The LED trigger ABI can be used to set HW
control mode on these LEDs.

I think it would be confusing to put such LEDs into a different
subsystem.

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