Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253153
b: refs/heads/master
c: e68273b
h: refs/heads/master
i:
  253151: 04aba41
v: v3
  • Loading branch information
Igor Grinberg authored and Tony Lindgren committed Jun 1, 2011
1 parent 74d75d4 commit aee1598
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 03b562d7859c6d7c640f071b422d521146471d6d
refs/heads/master: e68273baf30390e9c907831b47384085c7f664d5
20 changes: 10 additions & 10 deletions trunk/arch/arm/mach-omap2/common-board-devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ void __init omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce,
struct spi_board_info *spi_bi = &ads7846_spi_board_info;
int err;

err = gpio_request(gpio_pendown, "TS PenDown");
if (err) {
pr_err("Could not obtain gpio for TS PenDown: %d\n", err);
return;
}

gpio_direction_input(gpio_pendown);
gpio_export(gpio_pendown, 0);
if (board_pdata && board_pdata->get_pendown_state) {
err = gpio_request_one(gpio_pendown, GPIOF_IN, "TSPenDown");
if (err) {
pr_err("Couldn't obtain gpio for TSPenDown: %d\n", err);
return;
}
gpio_export(gpio_pendown, 0);

if (gpio_debounce)
gpio_set_debounce(gpio_pendown, gpio_debounce);
if (gpio_debounce)
gpio_set_debounce(gpio_pendown, gpio_debounce);
}

ads7846_config.gpio_pendown = gpio_pendown;

Expand Down

0 comments on commit aee1598

Please sign in to comment.