diff options
author | Denis Carikli <denis@eukrea.com> | 2013-11-19 14:56:04 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-11-25 21:27:53 -0500 |
commit | 07f9e5cf8e4154ad17b92ad288be0f04fa0cb94f (patch) | |
tree | 2369ad48e65fb898bc57858a6ab36f13a2125e41 /arch/arm/mach-imx | |
parent | bd77c321945f652f6225847a8405f469601cd02c (diff) |
Input: tsc2007 - add device tree support.
Signed-off-by: Denis Carikli <denis@eukrea.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx35.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx51sd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-cpuimx35.c b/arch/arm/mach-imx/mach-cpuimx35.c index 771362d1fbee..65e4c53e1554 100644 --- a/arch/arm/mach-imx/mach-cpuimx35.c +++ b/arch/arm/mach-imx/mach-cpuimx35.c | |||
@@ -53,7 +53,7 @@ static const struct imxi2c_platform_data | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | #define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2) | 55 | #define TSC2007_IRQGPIO IMX_GPIO_NR(3, 2) |
56 | static int tsc2007_get_pendown_state(void) | 56 | static int tsc2007_get_pendown_state(struct device *dev) |
57 | { | 57 | { |
58 | return !gpio_get_value(TSC2007_IRQGPIO); | 58 | return !gpio_get_value(TSC2007_IRQGPIO); |
59 | } | 59 | } |
diff --git a/arch/arm/mach-imx/mach-cpuimx51sd.c b/arch/arm/mach-imx/mach-cpuimx51sd.c index 9b5ddf5bbd33..1fba2b8e983f 100644 --- a/arch/arm/mach-imx/mach-cpuimx51sd.c +++ b/arch/arm/mach-imx/mach-cpuimx51sd.c | |||
@@ -121,7 +121,7 @@ static const struct imxuart_platform_data uart_pdata __initconst = { | |||
121 | .flags = IMXUART_HAVE_RTSCTS, | 121 | .flags = IMXUART_HAVE_RTSCTS, |
122 | }; | 122 | }; |
123 | 123 | ||
124 | static int tsc2007_get_pendown_state(void) | 124 | static int tsc2007_get_pendown_state(struct device *dev) |
125 | { | 125 | { |
126 | if (mx51_revision() < IMX_CHIP_REVISION_3_0) | 126 | if (mx51_revision() < IMX_CHIP_REVISION_3_0) |
127 | return !gpio_get_value(TSC2007_IRQGPIO_REV2); | 127 | return !gpio_get_value(TSC2007_IRQGPIO_REV2); |