]> err.no Git - linux-2.6/commit
gpio/pca953x bugfix: mark as can_sleep
authorArnaud Patard <arnaud.patard@rtp-net.org>
Mon, 10 Mar 2008 18:43:48 +0000 (11:43 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 11 Mar 2008 01:01:19 +0000 (18:01 -0700)
commit842078054da2d754c6b998b116d7c468abbfaaca
treee31e3d8bef79080c339f94a3a0e205774201e203
parent7be3dfec4724c51e890455fe48fe188ad7c18b88
gpio/pca953x bugfix: mark as can_sleep

The pca953x driver is an I2C driver so gpio_chip->can_sleep should be set.
This lets upper layers know they should use the gpio_*_cansleep() calls to
access values, and may not access them from nonsleeping contexts.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: "eric miao" <eric.y.miao@gmail.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/pca953x.c