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]

 



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.

Best regards,
								Pavel

-- 
http://www.livejournal.com/~pavelmachek

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