Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / input / misc / cma3000_d0x.h
blob05ad42a564df2c9c9e49c975cde007639a3631ff
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * VTI CMA3000_D0x Accelerometer driver
5 * Copyright (C) 2010 Texas Instruments
6 * Author: Hemanth V <hemanthv@ti.com>
7 */
9 #ifndef _INPUT_CMA3000_H
10 #define _INPUT_CMA3000_H
12 #include <linux/types.h>
13 #include <linux/input.h>
15 struct device;
16 struct cma3000_accl_data;
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 *);
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 *);
31 #endif