summaryrefslogtreecommitdiffstats
path: root/drivers/input/misc/adxl34x.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2010-07-01 18:07:33 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2010-07-03 22:13:21 +0200
commitaf6e1d99ea525161f70f68ecb83d0d0f54f1bf62 (patch)
tree5d805e4e6da3f252bd9b4d8a958b25723970837f /drivers/input/misc/adxl34x.h
parentInput: ad7879 - report EV_KEY/BTN_TOUCH events (diff)
downloadlinux-af6e1d99ea525161f70f68ecb83d0d0f54f1bf62.tar.xz
linux-af6e1d99ea525161f70f68ecb83d0d0f54f1bf62.zip
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>
Diffstat (limited to 'drivers/input/misc/adxl34x.h')
-rw-r--r--drivers/input/misc/adxl34x.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/adxl34x.h b/drivers/input/misc/adxl34x.h
index ea9093c15c81..bbbc80fda164 100644
--- a/drivers/input/misc/adxl34x.h
+++ b/drivers/input/misc/adxl34x.h
@@ -20,8 +20,8 @@ struct adxl34x_bus_ops {
int (*write)(struct device *, unsigned char, unsigned char);
};
-void adxl34x_disable(struct adxl34x *ac);
-void adxl34x_enable(struct adxl34x *ac);
+void adxl34x_suspend(struct adxl34x *ac);
+void adxl34x_resume(struct adxl34x *ac);
struct adxl34x *adxl34x_probe(struct device *dev, int irq,
bool fifo_delay_default,
const struct adxl34x_bus_ops *bops);