diff options
author | Balaji Rao <balajirrao@openmoko.org> | 2009-02-26 04:10:52 +0000 |
---|---|---|
committer | Andy Green <agreen@octopus.localdomain> | 2009-02-26 04:10:52 +0000 |
commit | e866878cd2a68e7ef46241f4317eddabb2eb359e (patch) | |
tree | e91e21cf834f61cbad0cee1a8aee9968a566afbd /include/linux | |
parent | 61fb71ae826aa6684e892ccfb73f6fc3bb013f13 (diff) |
Subject: lis302dl_use_s3c24xx_gpio_spi_bitbang.patch
X-Git-Url: http://git.openmoko.org/?p=kernel.git;a=commitdiff_plain;h=5689ad9b0ded29adec4be64df53e488c648b9831
lis302dl_use_s3c24xx_gpio_spi_bitbang.patch
Change lis302dl driver to use generic spi code. This requires that we define a
s3c24xx_gpio spi bitbang based controller in mach-gta02.c.
Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/lis302dl.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/linux/lis302dl.h b/include/linux/lis302dl.h index 01c4ac97a5b..0c1fc309731 100644 --- a/include/linux/lis302dl.h +++ b/include/linux/lis302dl.h @@ -4,7 +4,7 @@ #include <linux/types.h> #include <linux/spi/spi.h> #include <linux/input.h> - +#include <linux/workqueue.h> struct lis302dl_info; @@ -16,12 +16,7 @@ struct lis302dl_platform_data { unsigned long pin_miso; int open_drain; int interrupt; - void (*lis302dl_bitbang)(struct lis302dl_info *lis, u8 *tx, - int tx_bytes, u8 *rx, int rx_bytes); 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 { @@ -36,6 +31,8 @@ struct lis302dl_info { unsigned int threshold; /* mg */ unsigned int duration; /* ms */ } wakeup; + + struct spi_device *spi; u_int8_t regs[0x40]; }; |