]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/input/misc/cma3000_d0x.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234
[mirror_ubuntu-jammy-kernel.git] / drivers / input / misc / cma3000_d0x.h
CommitLineData
caab277b 1/* SPDX-License-Identifier: GPL-2.0-only */
b029ffaf
H
2/*
3 * VTI CMA3000_D0x Accelerometer driver
4 *
5 * Copyright (C) 2010 Texas Instruments
6 * Author: Hemanth V <hemanthv@ti.com>
b029ffaf
H
7 */
8
9#ifndef _INPUT_CMA3000_H
10#define _INPUT_CMA3000_H
11
12#include <linux/types.h>
13#include <linux/input.h>
14
15struct device;
16struct cma3000_accl_data;
17
18struct 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
25struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
26 const struct cma3000_bus_ops *bops);
27void cma3000_exit(struct cma3000_accl_data *);
28void cma3000_suspend(struct cma3000_accl_data *);
29void cma3000_resume(struct cma3000_accl_data *);
30
31#endif