diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-12-24 12:48:55 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-12-24 12:52:34 -0500 |
commit | ad4e58b0478ba8d34a3ddf695b3ceabe9510a839 (patch) | |
tree | 3a2120642a7f89af06338c91b5e779a5a00a4189 /drivers/input | |
parent | 5d3caa442e0858fa07b9a6a68d05e1ba2cf246a4 (diff) |
Input: adxl34x - consistently use read/write encapsulation
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>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/adxl34x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/misc/adxl34x.c b/drivers/input/misc/adxl34x.c index 1cf72fe513e6..b18d3e2a6ea5 100644 --- 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, | |||
732 | mutex_init(&ac->mutex); | 732 | mutex_init(&ac->mutex); |
733 | 733 | ||
734 | input_dev->name = "ADXL34x accelerometer"; | 734 | input_dev->name = "ADXL34x accelerometer"; |
735 | revid = ac->bops->read(dev, DEVID); | 735 | revid = AC_READ(ac, DEVID); |
736 | 736 | ||
737 | switch (revid) { | 737 | switch (revid) { |
738 | case ID_ADXL345: | 738 | case ID_ADXL345: |
@@ -809,7 +809,7 @@ struct adxl34x *adxl34x_probe(struct device *dev, int irq, | |||
809 | if (FIFO_MODE(pdata->fifo_mode) == FIFO_BYPASS) | 809 | if (FIFO_MODE(pdata->fifo_mode) == FIFO_BYPASS) |
810 | ac->fifo_delay = false; | 810 | ac->fifo_delay = false; |
811 | 811 | ||
812 | ac->bops->write(dev, POWER_CTL, 0); | 812 | AC_WRITE(ac, POWER_CTL, 0); |
813 | 813 | ||
814 | err = request_threaded_irq(ac->irq, NULL, adxl34x_irq, | 814 | err = request_threaded_irq(ac->irq, NULL, adxl34x_irq, |
815 | IRQF_TRIGGER_HIGH | IRQF_ONESHOT, | 815 | IRQF_TRIGGER_HIGH | IRQF_ONESHOT, |