cma3000_d0x.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * VTI CMA3000_D0x Accelerometer driver
  3. *
  4. * Copyright (C) 2010 Texas Instruments
  5. * Author: Hemanth V <hemanthv@ti.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope that it will be useful, but WITHOUT
  12. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  14. * more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along with
  17. * this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef _INPUT_CMA3000_H
  20. #define _INPUT_CMA3000_H
  21. #include <linux/types.h>
  22. #include <linux/input.h>
  23. struct device;
  24. struct cma3000_accl_data;
  25. struct cma3000_bus_ops {
  26. u16 bustype;
  27. u8 ctrl_mod;
  28. int (*read)(struct device *, u8, char *);
  29. int (*write)(struct device *, u8, u8, char *);
  30. };
  31. struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
  32. const struct cma3000_bus_ops *bops);
  33. void cma3000_exit(struct cma3000_accl_data *);
  34. void cma3000_suspend(struct cma3000_accl_data *);
  35. void cma3000_resume(struct cma3000_accl_data *);
  36. #endif