isl29003: fix resume functionality
authorDaniel Mack <daniel@caiaq.de>
Wed, 6 May 2009 23:03:00 +0000 (16:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 May 2009 23:36:10 +0000 (16:36 -0700)
commit74614f8d9d4141a3752fc1c38706859b63f4842b
tree5a8570b8315fe544ff24f7c82377ceda035f6de0
parent57226e7898076f864d6ce41ddeff4bbc772b950c
isl29003: fix resume functionality

The isl29003 does not interpret the return value of
i2c_smbus_write_byte_data() correctly and hence causes an error on system
resume.

Also introduce power_state_before_suspend and restore the chip's power
state upon wakeup.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
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/misc/isl29003.c