diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-10-16 01:03:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:40 -0400 |
commit | 93a22f8b95756c53e80308820892119c910d2739 (patch) | |
tree | 01539a24fc517e84e35c951699fc0939336b55a6 /drivers/video/omap/lcd_inn1610.c | |
parent | 0f6d504e73b49374c6093efe6aa60ab55058248a (diff) |
omap drivers: switch to standard GPIO calls
This updates most of the OMAP drivers which are in mainline to switch to
using the cross-platform GPIO calls instead of the older OMAP-specific
ones.
This is all fairly brainless/obvious stuff. Probably the most interesting
bit is to observe that the omap-keypad code seems to now have a portable
core that could work with non-OMAP matrix keypads. (That would improve
with hardware IRQ debouncing enabled, of course...)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Antonino Daplas <adaplas@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/omap/lcd_inn1610.c')
-rw-r--r-- | drivers/video/omap/lcd_inn1610.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/video/omap/lcd_inn1610.c b/drivers/video/omap/lcd_inn1610.c index 6a42c6a0cd99..4c4f7ee6d733 100644 --- a/drivers/video/omap/lcd_inn1610.c +++ b/drivers/video/omap/lcd_inn1610.c | |||
@@ -32,43 +32,43 @@ static int innovator1610_panel_init(struct lcd_panel *panel, | |||
32 | { | 32 | { |
33 | int r = 0; | 33 | int r = 0; |
34 | 34 | ||
35 | if (omap_request_gpio(14)) { | 35 | if (gpio_request(14, "lcd_en0")) { |
36 | pr_err(MODULE_NAME ": can't request GPIO 14\n"); | 36 | pr_err(MODULE_NAME ": can't request GPIO 14\n"); |
37 | r = -1; | 37 | r = -1; |
38 | goto exit; | 38 | goto exit; |
39 | } | 39 | } |
40 | if (omap_request_gpio(15)) { | 40 | if (gpio_request(15, "lcd_en1")) { |
41 | pr_err(MODULE_NAME ": can't request GPIO 15\n"); | 41 | pr_err(MODULE_NAME ": can't request GPIO 15\n"); |
42 | omap_free_gpio(14); | 42 | gpio_free(14); |
43 | r = -1; | 43 | r = -1; |
44 | goto exit; | 44 | goto exit; |
45 | } | 45 | } |
46 | /* configure GPIO(14, 15) as outputs */ | 46 | /* configure GPIO(14, 15) as outputs */ |
47 | omap_set_gpio_direction(14, 0); | 47 | gpio_direction_output(14, 0); |
48 | omap_set_gpio_direction(15, 0); | 48 | gpio_direction_output(15, 0); |
49 | exit: | 49 | exit: |
50 | return r; | 50 | return r; |
51 | } | 51 | } |
52 | 52 | ||
53 | static void innovator1610_panel_cleanup(struct lcd_panel *panel) | 53 | static void innovator1610_panel_cleanup(struct lcd_panel *panel) |
54 | { | 54 | { |
55 | omap_free_gpio(15); | 55 | gpio_free(15); |
56 | omap_free_gpio(14); | 56 | gpio_free(14); |
57 | } | 57 | } |
58 | 58 | ||
59 | static int innovator1610_panel_enable(struct lcd_panel *panel) | 59 | static int innovator1610_panel_enable(struct lcd_panel *panel) |
60 | { | 60 | { |
61 | /* set GPIO14 and GPIO15 high */ | 61 | /* set GPIO14 and GPIO15 high */ |
62 | omap_set_gpio_dataout(14, 1); | 62 | gpio_set_value(14, 1); |
63 | omap_set_gpio_dataout(15, 1); | 63 | gpio_set_value(15, 1); |
64 | return 0; | 64 | return 0; |
65 | } | 65 | } |
66 | 66 | ||
67 | static void innovator1610_panel_disable(struct lcd_panel *panel) | 67 | static void innovator1610_panel_disable(struct lcd_panel *panel) |
68 | { | 68 | { |
69 | /* set GPIO13, GPIO14 and GPIO15 low */ | 69 | /* set GPIO13, GPIO14 and GPIO15 low */ |
70 | omap_set_gpio_dataout(14, 0); | 70 | gpio_set_value(14, 0); |
71 | omap_set_gpio_dataout(15, 0); | 71 | gpio_set_value(15, 0); |
72 | } | 72 | } |
73 | 73 | ||
74 | static unsigned long innovator1610_panel_get_caps(struct lcd_panel *panel) | 74 | static unsigned long innovator1610_panel_get_caps(struct lcd_panel *panel) |