1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * VTI CMA3000_D0x Accelerometer driver
5 * Copyright (C) 2010 Texas Instruments
9 #ifndef _INPUT_CMA3000_H
10 #define _INPUT_CMA3000_H
12 #include <linux/types.h>
13 #include <linux/input.h>
16 struct cma3000_accl_data;
18 struct cma3000_bus_ops {
21 int (*read)(struct device *, u8, char *);
22 int (*write)(struct device *, u8, u8, char *);
25 struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
26 const struct cma3000_bus_ops *bops);
27 void cma3000_exit(struct cma3000_accl_data *);
28 void cma3000_suspend(struct cma3000_accl_data *);
29 void cma3000_resume(struct cma3000_accl_data *);