diff options
author | Riku Voipio <riku.voipio@iki.fi> | 2008-12-03 08:21:36 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-08 12:38:58 +0000 |
commit | 934cd3f979a1daacbd403398f2c7a8f6720c33aa (patch) | |
tree | 1cfb5b9c4d4c380c9b88d045b6aa233ca5211755 /include/linux | |
parent | f785d022add53ec4d9625495b335bed40bd6c079 (diff) | |
download | linux-934cd3f979a1daacbd403398f2c7a8f6720c33aa.tar.gz linux-934cd3f979a1daacbd403398f2c7a8f6720c33aa.tar.bz2 linux-934cd3f979a1daacbd403398f2c7a8f6720c33aa.zip |
leds: leds-pcs9532 - Move i2c work to a workqueque
Apparently these might be called under atomic context,
and i2c operations may sleep. BUG found by
Ross Burton <ross@burtonini.com>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/leds-pca9532.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/leds-pca9532.h b/include/linux/leds-pca9532.h index 81b4207deb95..96eea90f01a8 100644 --- a/include/linux/leds-pca9532.h +++ b/include/linux/leds-pca9532.h @@ -15,6 +15,7 @@ #define __LINUX_PCA9532_H #include <linux/leds.h> +#include <linux/workqueue.h> enum pca9532_state { PCA9532_OFF = 0x0, @@ -31,6 +32,7 @@ struct pca9532_led { struct i2c_client *client; char *name; struct led_classdev ldev; + struct work_struct work; enum pca9532_type type; enum pca9532_state state; }; |