]> git.baikalelectronics.ru Git - kernel.git/commit
lis3: remove automatic shutdown of the device
authorEric Piel <eric.piel@tremplin-utc.net>
Tue, 16 Jun 2009 22:34:14 +0000 (15:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:57 +0000 (19:47 -0700)
commit5c1be39cdbe8fe375280510f735582b30ccc6371
tree3a66ea80ad5523359e3f3f34be39d902d84706bb
parent62a187d47a679e43dcd5c97969c74800189ed15e
lis3: remove automatic shutdown of the device

After measurement on my laptop, it seems that turning off the device does
not bring any energy saving (within 0.1W precision).  So let's keep the
device always on.  It simplifies the code, and it avoids the problem of
reading a wrong value sometimes just after turning the device on.

Moreover, since commit 24f6009cbfc059bf5f61eca7919fb13edf00f279 had been
too zealous, the device was actually never turned off anyway.  This patch
also restores the damages done by this commit concerning the
initialisation/poweroff.

Also do more clean up with the usage of the lis3_dev global variable.

Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hwmon/hp_accel.c
drivers/hwmon/lis3lv02d.c
drivers/hwmon/lis3lv02d.h