2019-06-03 13:44:50 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2010-12-01 15:03:54 +08:00
|
|
|
/*
|
|
|
|
* VTI CMA3000_D0x Accelerometer driver
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Texas Instruments
|
|
|
|
* Author: Hemanth V <hemanthv@ti.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INPUT_CMA3000_H
|
|
|
|
#define _INPUT_CMA3000_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/input.h>
|
|
|
|
|
|
|
|
struct device;
|
|
|
|
struct cma3000_accl_data;
|
|
|
|
|
|
|
|
struct cma3000_bus_ops {
|
|
|
|
u16 bustype;
|
|
|
|
u8 ctrl_mod;
|
|
|
|
int (*read)(struct device *, u8, char *);
|
|
|
|
int (*write)(struct device *, u8, u8, char *);
|
|
|
|
};
|
|
|
|
|
|
|
|
struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
|
|
|
|
const struct cma3000_bus_ops *bops);
|
|
|
|
void cma3000_exit(struct cma3000_accl_data *);
|
|
|
|
void cma3000_suspend(struct cma3000_accl_data *);
|
|
|
|
void cma3000_resume(struct cma3000_accl_data *);
|
|
|
|
|
|
|
|
#endif
|