Re: [PATCH] leds: driver for ab5500 high voltage leds

From: Mark Brown
Date: Wed Dec 07 2011 - 10:48:33 EST


On Wed, Dec 07, 2011 at 03:16:06PM +0100, Linus Walleij wrote:

> Then in the sysfs interface:

> + if (led_curr > led->max_current)
> + led_curr = led->max_current;

> You are only allowed to set a lower value than the max value.

Oh, that's surprising - my expectation had been that the standard
brightness setting would be managing the current limit and the user
wouldn't need to control it separately.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/