Re: [PATCH] backlight: gpio-backlight: Fix warning when the GPIO is on a I2C chip

From: Linus Walleij
Date: Fri May 09 2014 - 05:06:53 EST


On Fri, May 9, 2014 at 5:42 AM, Jingoo Han <jg1.han@xxxxxxxxxxx> wrote:

> Linus Walleij,
> Is there any reason to keep these two functions such as
> gpiod_set_raw_value_cansleep() and gpiod_set_raw_value()?

Yes, the former can *not* be called from interrupt context,
and thus erroneous usage can be detected with runtime checks.

Yours,
Linus Walleij
--
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/