ad714x.h 695 B

1234567891011121314151617181920212223242526
  1. /*
  2. * AD714X CapTouch Programmable Controller driver (bus interfaces)
  3. *
  4. * Copyright 2009 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef _AD714X_H_
  9. #define _AD714X_H_
  10. #include <linux/types.h>
  11. struct device;
  12. struct ad714x_chip;
  13. typedef int (*ad714x_read_t)(struct device *, unsigned short, unsigned short *);
  14. typedef int (*ad714x_write_t)(struct device *, unsigned short, unsigned short);
  15. int ad714x_disable(struct ad714x_chip *ad714x);
  16. int ad714x_enable(struct ad714x_chip *ad714x);
  17. struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
  18. ad714x_read_t read, ad714x_write_t write);
  19. void ad714x_remove(struct ad714x_chip *ad714x);
  20. #endif