diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/lis302dl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/lis302dl.h b/include/linux/lis302dl.h index 7daa8b39980..4578db4ad6d 100644 --- a/include/linux/lis302dl.h +++ b/include/linux/lis302dl.h @@ -15,15 +15,18 @@ struct lis302dl_platform_data { unsigned long pin_mosi; unsigned long pin_miso; int open_drain; - void (*lis302dl_bitbang_read)(struct lis302dl_info *); + int interrupt; + void (*lis302dl_bitbang_read_sample)(struct lis302dl_info *); void (*lis302dl_suspend_io)(struct lis302dl_info *, int resuming); + int (*lis302dl_bitbang_reg_read)(struct lis302dl_info *, u8 reg); + void (*lis302dl_bitbang_reg_write)(struct lis302dl_info *, u8 reg, + u8 val); }; struct lis302dl_info { struct lis302dl_platform_data *pdata; - struct spi_device *spi_dev; + struct device *dev; struct input_dev *input_dev; - struct mutex lock; unsigned int flags; u_int8_t regs[0x40]; }; |