cma3000_d0x.h 730 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * VTI CMA3000_D0x Accelerometer driver
  4. *
  5. * Copyright (C) 2010 Texas Instruments
  6. * Author: Hemanth V <hemanthv@ti.com>
  7. */
  8. #ifndef _INPUT_CMA3000_H
  9. #define _INPUT_CMA3000_H
  10. #include <linux/types.h>
  11. #include <linux/input.h>
  12. struct device;
  13. struct cma3000_accl_data;
  14. struct cma3000_bus_ops {
  15. u16 bustype;
  16. u8 ctrl_mod;
  17. int (*read)(struct device *, u8, char *);
  18. int (*write)(struct device *, u8, u8, char *);
  19. };
  20. struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
  21. const struct cma3000_bus_ops *bops);
  22. void cma3000_exit(struct cma3000_accl_data *);
  23. void cma3000_suspend(struct cma3000_accl_data *);
  24. void cma3000_resume(struct cma3000_accl_data *);
  25. #endif