[PATCH V2 07/09] led: enable led in 88pm860x

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Dec 9 10:14:32 EST 2009


On Wed, Dec 09, 2009 at 08:16:21AM -0500, Haojian Zhuang wrote:

> +	period = on + *delay_off;
> +	if (period < LED_BLINK_PERIOD_MIN)
> +		period = LED_BLINK_PERIOD_MIN;
> +	if (period > LED_BLINK_PERIOD_MAX)
> +		period = LED_BLINK_PERIOD_MAX;

If the hardware can't support the blink settings requested the driver
ought to return an error - there's a software fallback which will blink
the LED using a timer instead.



More information about the linux-arm-kernel mailing list