]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tmp102) Fix suspend and resume functions
authorJean Delvare <khali@linux-fr.org>
Thu, 27 May 2010 17:58:58 +0000 (19:58 +0200)
committerJean Delvare <khali@linux-fr.org>
Thu, 27 May 2010 17:58:58 +0000 (19:58 +0200)
commit37a64551d92d66934029abb5515135cf1036bedc
treeeb3eff50616859bffda22485f6f8f4a5a0bbe8b1
parent66c66317b67b78b2979fdb060d60614e6e44b077
hwmon: (tmp102) Fix suspend and resume functions

Suspend and resume functions shouldn't overwrite the configuration
register. They should only alter the one bit they have to touch.

Also don't assume that register reads and writes always succeed.
Handle errors properly, shall they happen.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Steven King <sfking@fdwdc.com>
drivers/hwmon/tmp102.c