Path: blob/master/drivers/input/misc/cma3000_d0x.h
15111 views
/*1* VTI CMA3000_D0x Accelerometer driver2*3* Copyright (C) 2010 Texas Instruments4* Author: Hemanth V <[email protected]>5*6* This program is free software; you can redistribute it and/or modify it7* under the terms of the GNU General Public License version 2 as published by8* the Free Software Foundation.9*10* This program is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for13* more details.14*15* You should have received a copy of the GNU General Public License along with16* this program. If not, see <http://www.gnu.org/licenses/>.17*/1819#ifndef _INPUT_CMA3000_H20#define _INPUT_CMA3000_H2122#include <linux/types.h>23#include <linux/input.h>2425struct device;26struct cma3000_accl_data;2728struct cma3000_bus_ops {29u16 bustype;30u8 ctrl_mod;31int (*read)(struct device *, u8, char *);32int (*write)(struct device *, u8, u8, char *);33};3435struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,36const struct cma3000_bus_ops *bops);37void cma3000_exit(struct cma3000_accl_data *);38void cma3000_suspend(struct cma3000_accl_data *);39void cma3000_resume(struct cma3000_accl_data *);4041#endif424344