projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d3caa4
)
Input: adxl34x - consistently use read/write encapsulation
author
Wolfram Sang
<w.sang@pengutronix.de>
Mon, 24 Dec 2012 17:48:55 +0000
(09:48 -0800)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 24 Dec 2012 17:52:34 +0000
(09:52 -0800)
Don't open code the AC_READ and AC_WRITE macros.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/adxl34x.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/adxl34x.c
b/drivers/input/misc/adxl34x.c
index
1cf72fe
..
b18d3e2
100644
(file)
--- a/
drivers/input/misc/adxl34x.c
+++ b/
drivers/input/misc/adxl34x.c
@@
-732,7
+732,7
@@
struct adxl34x *adxl34x_probe(struct device *dev, int irq,
mutex_init(&ac->mutex);
input_dev->name = "ADXL34x accelerometer";
- revid =
ac->bops->read(dev
, DEVID);
+ revid =
AC_READ(ac
, DEVID);
switch (revid) {
case ID_ADXL345:
@@
-809,7
+809,7
@@
struct adxl34x *adxl34x_probe(struct device *dev, int irq,
if (FIFO_MODE(pdata->fifo_mode) == FIFO_BYPASS)
ac->fifo_delay = false;
-
ac->bops->write(dev
, POWER_CTL, 0);
+
AC_WRITE(ac
, POWER_CTL, 0);
err = request_threaded_irq(ac->irq, NULL, adxl34x_irq,
IRQF_TRIGGER_HIGH | IRQF_ONESHOT,