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/plat-s3c24xx/common-smdk.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/plat-s3c24xx/common-smdk.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/common-smdk.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/arm/plat-s3c24xx/common-smdk.c b/arch/arm/plat-s3c24xx/common-smdk.c index fe658c48f724..aa119863c5ce 100644 --- a/arch/arm/plat-s3c24xx/common-smdk.c +++ b/arch/arm/plat-s3c24xx/common-smdk.c | |||
@@ -48,27 +48,27 @@ | |||
48 | /* LED devices */ | 48 | /* LED devices */ |
49 | 49 | ||
50 | static struct s3c24xx_led_platdata smdk_pdata_led4 = { | 50 | static struct s3c24xx_led_platdata smdk_pdata_led4 = { |
51 | .gpio = S3C2410_GPF4, | 51 | .gpio = S3C2410_GPF(4), |
52 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | 52 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, |
53 | .name = "led4", | 53 | .name = "led4", |
54 | .def_trigger = "timer", | 54 | .def_trigger = "timer", |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static struct s3c24xx_led_platdata smdk_pdata_led5 = { | 57 | static struct s3c24xx_led_platdata smdk_pdata_led5 = { |
58 | .gpio = S3C2410_GPF5, | 58 | .gpio = S3C2410_GPF(5), |
59 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | 59 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, |
60 | .name = "led5", | 60 | .name = "led5", |
61 | .def_trigger = "nand-disk", | 61 | .def_trigger = "nand-disk", |
62 | }; | 62 | }; |
63 | 63 | ||
64 | static struct s3c24xx_led_platdata smdk_pdata_led6 = { | 64 | static struct s3c24xx_led_platdata smdk_pdata_led6 = { |
65 | .gpio = S3C2410_GPF6, | 65 | .gpio = S3C2410_GPF(6), |
66 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | 66 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, |
67 | .name = "led6", | 67 | .name = "led6", |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static struct s3c24xx_led_platdata smdk_pdata_led7 = { | 70 | static struct s3c24xx_led_platdata smdk_pdata_led7 = { |
71 | .gpio = S3C2410_GPF7, | 71 | .gpio = S3C2410_GPF(7), |
72 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, | 72 | .flags = S3C24XX_LEDF_ACTLOW | S3C24XX_LEDF_TRISTATE, |
73 | .name = "led7", | 73 | .name = "led7", |
74 | }; | 74 | }; |
@@ -185,15 +185,15 @@ void __init smdk_machine_init(void) | |||
185 | { | 185 | { |
186 | /* Configure the LEDs (even if we have no LED support)*/ | 186 | /* Configure the LEDs (even if we have no LED support)*/ |
187 | 187 | ||
188 | s3c2410_gpio_cfgpin(S3C2410_GPF4, S3C2410_GPIO_OUTPUT); | 188 | s3c2410_gpio_cfgpin(S3C2410_GPF(4), S3C2410_GPIO_OUTPUT); |
189 | s3c2410_gpio_cfgpin(S3C2410_GPF5, S3C2410_GPIO_OUTPUT); | 189 | s3c2410_gpio_cfgpin(S3C2410_GPF(5), S3C2410_GPIO_OUTPUT); |
190 | s3c2410_gpio_cfgpin(S3C2410_GPF6, S3C2410_GPIO_OUTPUT); | 190 | s3c2410_gpio_cfgpin(S3C2410_GPF(6), S3C2410_GPIO_OUTPUT); |
191 | s3c2410_gpio_cfgpin(S3C2410_GPF7, S3C2410_GPIO_OUTPUT); | 191 | s3c2410_gpio_cfgpin(S3C2410_GPF(7), S3C2410_GPIO_OUTPUT); |
192 | 192 | ||
193 | s3c2410_gpio_setpin(S3C2410_GPF4, 1); | 193 | s3c2410_gpio_setpin(S3C2410_GPF(4), 1); |
194 | s3c2410_gpio_setpin(S3C2410_GPF5, 1); | 194 | s3c2410_gpio_setpin(S3C2410_GPF(5), 1); |
195 | s3c2410_gpio_setpin(S3C2410_GPF6, 1); | 195 | s3c2410_gpio_setpin(S3C2410_GPF(6), 1); |
196 | s3c2410_gpio_setpin(S3C2410_GPF7, 1); | 196 | s3c2410_gpio_setpin(S3C2410_GPF(7), 1); |
197 | 197 | ||
198 | if (machine_is_smdk2443()) | 198 | if (machine_is_smdk2443()) |
199 | smdk_nand_info.twrph0 = 50; | 199 | smdk_nand_info.twrph0 = 50; |