Input: adxl34 - make enable/disable separate from suspend/resume
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Jul 2010 16:07:33 +0000 (09:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Jul 2010 20:13:21 +0000 (13:13 -0700)
commitaf6e1d99ea525161f70f68ecb83d0d0f54f1bf62
tree5d805e4e6da3f252bd9b4d8a958b25723970837f
parent963ce8ae6dbc7c8dffb1b117ba14673d40b22dda
Input: adxl34 - make enable/disable separate from suspend/resume

Suspending and resuming the device should be separate from enabling
and disabling it through sysfs attribute and thus should not alter
ac->disabled flag.

[michael.hennerich@analog.com: various fixups]
Tested-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/adxl34x-i2c.c
drivers/input/misc/adxl34x-spi.c
drivers/input/misc/adxl34x.c
drivers/input/misc/adxl34x.h