]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd1d08c633abe290689907ba14b83fdbe8ed6ad97
tree5a8570b8315fe544ff24f7c82377ceda035f6de0
parentb0241603cccbd3ce1dffc54f0712dff1f417c984
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