diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-17 08:22:38 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-23 18:21:26 +0100 |
commit | 404a24c35db8c44dce91010023f12b73f2f44441 (patch) | |
tree | 93834628ab48de8cfac17a233e445557f5067d50 /drivers/input/touchscreen/ad7879.h | |
parent | Input: zet6223 - export OF device ID as module aliases (diff) | |
download | linux-404a24c35db8c44dce91010023f12b73f2f44441.tar.xz linux-404a24c35db8c44dce91010023f12b73f2f44441.zip |
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.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/input/touchscreen/ad7879.h b/drivers/input/touchscreen/ad7879.h index 6fd13c48d373..1131f8aa118b 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 |