[PATCH 2/3] Use gpio_set_value_cansleep() in corgi_lcd.c
Pavel Machek
pavel at ucw.cz
Sun Apr 10 03:58:34 EDT 2011
On Mon 2011-04-04 18:45:46, Eric Miao wrote:
> Personally, I don't quite like the idea of an explicit _cansleep() version,
> which is just confusing. A programmer shouldn't be aware of which
> version to use.
>
> David, you have any justification?
Whether it is possible to sleep in given context is not something
that can be detected automatically in general case; so two different
functions are needed.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
More information about the linux-arm-kernel
mailing list