diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2009-09-21 20:04:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:49 -0400 |
commit | a976f150a6953da5ccbd40fa6dba3bd7d56f9f67 (patch) | |
tree | 36c0c1b9d424649421dde1f1d553bd17179a5264 /include/linux/pnp.h | |
parent | 560a64a2b501add585b494b2b9cd9f68c0636b50 (diff) |
hwmon: applesmc: restore accelerometer and keyboard backlight on resume
On resume from suspend, the driver currently resets the logical state as
if it was brought up from halt. This patch uses the
dev_pm_ops.resume/restore methods to synchronize the hardware with the
memorized logical state, in effect bringing back the accelerometer and
backlight to the state prior to suspend. Works for both suspend to ram
and hibernation. The patch has zero effect on the running state.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Cc: Nicolas Boichat <nicolas@boichat.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/pnp.h')
0 files changed, 0 insertions, 0 deletions