diff options
author | Ben Dooks <ben-linux@fluff.org> | 2009-05-17 17:32:23 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2009-05-18 11:26:03 -0400 |
commit | 070276d5d049f385763dee19112bea08f56c9a0d (patch) | |
tree | 5a32a885de72f18476ff067a25d8a159ac01629d /arch/arm/mach-s3c2410/h1940-bluetooth.c | |
parent | 75cbcff3729fe2568dff38d16d6494f8fb7f59fe (diff) |
[ARM] S3C24XX: GPIO: Change to macros for GPIO numbering
Prepare to remove the large number of S3C2410_GPxn defines
by moving to S3C2410_GPx(n) in arch/arm.
The following perl was used to change the files:
perl -pi~ -e 's/S3C2410_GP([A-Z])([0-9]+)([^_^0-9])/S3C2410_GP\1\(\2\)\3/g'
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s3c2410/h1940-bluetooth.c')
-rw-r--r-- | arch/arm/mach-s3c2410/h1940-bluetooth.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/mach-s3c2410/h1940-bluetooth.c b/arch/arm/mach-s3c2410/h1940-bluetooth.c index 9bbea8a73ddc..5aabf117cbb0 100644 --- a/arch/arm/mach-s3c2410/h1940-bluetooth.c +++ b/arch/arm/mach-s3c2410/h1940-bluetooth.c | |||
@@ -43,9 +43,9 @@ static void h1940bt_enable(int on) | |||
43 | h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER); | 43 | h1940_latch_control(0, H1940_LATCH_BLUETOOTH_POWER); |
44 | /* Reset the chip */ | 44 | /* Reset the chip */ |
45 | mdelay(10); | 45 | mdelay(10); |
46 | s3c2410_gpio_setpin(S3C2410_GPH1, 1); | 46 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); |
47 | mdelay(10); | 47 | mdelay(10); |
48 | s3c2410_gpio_setpin(S3C2410_GPH1, 0); | 48 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); |
49 | 49 | ||
50 | state = 1; | 50 | state = 1; |
51 | } | 51 | } |
@@ -54,9 +54,9 @@ static void h1940bt_enable(int on) | |||
54 | led_trigger_event(bt_led_trigger, 0); | 54 | led_trigger_event(bt_led_trigger, 0); |
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | s3c2410_gpio_setpin(S3C2410_GPH1, 1); | 57 | s3c2410_gpio_setpin(S3C2410_GPH(1), 1); |
58 | mdelay(10); | 58 | mdelay(10); |
59 | s3c2410_gpio_setpin(S3C2410_GPH1, 0); | 59 | s3c2410_gpio_setpin(S3C2410_GPH(1), 0); |
60 | mdelay(10); | 60 | mdelay(10); |
61 | h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0); | 61 | h1940_latch_control(H1940_LATCH_BLUETOOTH_POWER, 0); |
62 | 62 | ||
@@ -89,14 +89,14 @@ static DEVICE_ATTR(enable, 0644, | |||
89 | static int __init h1940bt_probe(struct platform_device *pdev) | 89 | static int __init h1940bt_probe(struct platform_device *pdev) |
90 | { | 90 | { |
91 | /* Configures BT serial port GPIOs */ | 91 | /* Configures BT serial port GPIOs */ |
92 | s3c2410_gpio_cfgpin(S3C2410_GPH0, S3C2410_GPH0_nCTS0); | 92 | s3c2410_gpio_cfgpin(S3C2410_GPH(0), S3C2410_GPH0_nCTS0); |
93 | s3c2410_gpio_pullup(S3C2410_GPH0, 1); | 93 | s3c2410_gpio_pullup(S3C2410_GPH(0), 1); |
94 | s3c2410_gpio_cfgpin(S3C2410_GPH1, S3C2410_GPIO_OUTPUT); | 94 | s3c2410_gpio_cfgpin(S3C2410_GPH(1), S3C2410_GPIO_OUTPUT); |
95 | s3c2410_gpio_pullup(S3C2410_GPH1, 1); | 95 | s3c2410_gpio_pullup(S3C2410_GPH(1), 1); |
96 | s3c2410_gpio_cfgpin(S3C2410_GPH2, S3C2410_GPH2_TXD0); | 96 | s3c2410_gpio_cfgpin(S3C2410_GPH(2), S3C2410_GPH2_TXD0); |
97 | s3c2410_gpio_pullup(S3C2410_GPH2, 1); | 97 | s3c2410_gpio_pullup(S3C2410_GPH(2), 1); |
98 | s3c2410_gpio_cfgpin(S3C2410_GPH3, S3C2410_GPH3_RXD0); | 98 | s3c2410_gpio_cfgpin(S3C2410_GPH(3), S3C2410_GPH3_RXD0); |
99 | s3c2410_gpio_pullup(S3C2410_GPH3, 1); | 99 | s3c2410_gpio_pullup(S3C2410_GPH(3), 1); |
100 | 100 | ||
101 | #ifdef CONFIG_LEDS_H1940 | 101 | #ifdef CONFIG_LEDS_H1940 |
102 | led_trigger_register_simple("h1940-bluetooth", &bt_led_trigger); | 102 | led_trigger_register_simple("h1940-bluetooth", &bt_led_trigger); |