xref: /openbmc/linux/drivers/input/misc/cma3000_d0x.h (revision c2dea0bc)
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 
9 #ifndef _INPUT_CMA3000_H
10 #define _INPUT_CMA3000_H
11 
12 #include <linux/types.h>
13 #include <linux/input.h>
14 
15 struct device;
16 struct cma3000_accl_data;
17 
18 struct cma3000_bus_ops {
19 	u16 bustype;
20 	u8 ctrl_mod;
21 	int (*read)(struct device *, u8, char *);
22 	int (*write)(struct device *, u8, u8, char *);
23 };
24 
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 *);
30 
31 #endif
32