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