Path: blob/master/drivers/input/touchscreen/ad7879.h
15111 views
/*1* AD7879/AD7889 touchscreen (bus interfaces)2*3* Copyright (C) 2008-2010 Michael Hennerich, Analog Devices Inc.4*5* Licensed under the GPL-2 or later.6*/78#ifndef _AD7879_H_9#define _AD7879_H_1011#include <linux/types.h>1213struct ad7879;14struct device;1516struct ad7879_bus_ops {17u16 bustype;18int (*read)(struct device *dev, u8 reg);19int (*multi_read)(struct device *dev, u8 first_reg, u8 count, u16 *buf);20int (*write)(struct device *dev, u8 reg, u16 val);21};2223void ad7879_suspend(struct ad7879 *);24void ad7879_resume(struct ad7879 *);25struct ad7879 *ad7879_probe(struct device *dev, u8 devid, unsigned irq,26const struct ad7879_bus_ops *bops);27void ad7879_remove(struct ad7879 *);2829#endif303132