diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2009-07-17 06:50:43 -0400 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2009-09-10 06:49:39 -0400 |
commit | c4bd01727380ce666aba987b3d7c0e838cb99bbe (patch) | |
tree | 5ee425da3645c1371b154bc47d1ae7ab3c81041b /arch/arm/mach-pxa/palmt5.c | |
parent | 2a23ec3679d84ac243add761fa3d3872cf6dcb11 (diff) |
[ARM] pxa: add gpio_pwdown(_inverted) into pxaficp_ir.c
and convert PXA-based devices to gpio_pwdown where possible.
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/palmt5.c')
-rw-r--r-- | arch/arm/mach-pxa/palmt5.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/arm/mach-pxa/palmt5.c b/arch/arm/mach-pxa/palmt5.c index 88dcaac358a2..2dd7ce28556b 100644 --- a/arch/arm/mach-pxa/palmt5.c +++ b/arch/arm/mach-pxa/palmt5.c | |||
@@ -243,35 +243,9 @@ static struct platform_device palmt5_backlight = { | |||
243 | /****************************************************************************** | 243 | /****************************************************************************** |
244 | * IrDA | 244 | * IrDA |
245 | ******************************************************************************/ | 245 | ******************************************************************************/ |
246 | static int palmt5_irda_startup(struct device *dev) | ||
247 | { | ||
248 | int err; | ||
249 | err = gpio_request(GPIO_NR_PALMT5_IR_DISABLE, "IR DISABLE"); | ||
250 | if (err) | ||
251 | goto err; | ||
252 | err = gpio_direction_output(GPIO_NR_PALMT5_IR_DISABLE, 1); | ||
253 | if (err) | ||
254 | gpio_free(GPIO_NR_PALMT5_IR_DISABLE); | ||
255 | err: | ||
256 | return err; | ||
257 | } | ||
258 | |||
259 | static void palmt5_irda_shutdown(struct device *dev) | ||
260 | { | ||
261 | gpio_free(GPIO_NR_PALMT5_IR_DISABLE); | ||
262 | } | ||
263 | |||
264 | static void palmt5_irda_transceiver_mode(struct device *dev, int mode) | ||
265 | { | ||
266 | gpio_set_value(GPIO_NR_PALMT5_IR_DISABLE, mode & IR_OFF); | ||
267 | pxa2xx_transceiver_mode(dev, mode); | ||
268 | } | ||
269 | |||
270 | static struct pxaficp_platform_data palmt5_ficp_platform_data = { | 246 | static struct pxaficp_platform_data palmt5_ficp_platform_data = { |
271 | .startup = palmt5_irda_startup, | 247 | .gpio_pwdown = GPIO_NR_PALMT5_IR_DISABLE, |
272 | .shutdown = palmt5_irda_shutdown, | 248 | .transceiver_cap = IR_SIRMODE | IR_OFF, |
273 | .transceiver_cap = IR_SIRMODE | IR_FIRMODE | IR_OFF, | ||
274 | .transceiver_mode = palmt5_irda_transceiver_mode, | ||
275 | }; | 249 | }; |
276 | 250 | ||
277 | /****************************************************************************** | 251 | /****************************************************************************** |