summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ad7879.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-16 23:22:38 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-23 09:21:26 -0800
commit404a24c35db8c44dce91010023f12b73f2f44441 (patch)
tree93834628ab48de8cfac17a233e445557f5067d50 /drivers/input/touchscreen/ad7879.h
parenta1b5359271e5c77d5ec8a575b379a6ba3e867097 (diff)
downloadop-kernel-dev-404a24c35db8c44dce91010023f12b73f2f44441.zip
op-kernel-dev-404a24c35db8c44dce91010023f12b73f2f44441.tar.gz
Input: ad7879 - convert to use regmap
Instead of rolling our own infrastructure to provide uniform access to I2C and SPI buses, let's switch to using regmap. Reviewed-by: Michael Hennerich <michael.hennerich@analog.com> Tested-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/ad7879.h')
-rw-r--r--drivers/input/touchscreen/ad7879.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/input/touchscreen/ad7879.h b/drivers/input/touchscreen/ad7879.h
index 6fd13c4..1131f8a 100644
--- a/drivers/input/touchscreen/ad7879.h
+++ b/drivers/input/touchscreen/ad7879.h
@@ -13,18 +13,12 @@
struct ad7879;
struct device;
-
-struct ad7879_bus_ops {
- u16 bustype;
- int (*read)(struct device *dev, u8 reg);
- int (*multi_read)(struct device *dev, u8 first_reg, u8 count, u16 *buf);
- int (*write)(struct device *dev, u8 reg, u16 val);
-};
+struct regmap;
extern const struct dev_pm_ops ad7879_pm_ops;
-struct ad7879 *ad7879_probe(struct device *dev, u8 devid, unsigned irq,
- const struct ad7879_bus_ops *bops);
+struct ad7879 *ad7879_probe(struct device *dev, struct regmap *regmap,
+ int irq, u16 bustype, u8 devid);
void ad7879_remove(struct ad7879 *);
#endif
OpenPOWER on IntegriCloud