aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c2410/mach-vr1000.c
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2009-05-17 17:32:23 -0400
committerBen Dooks <ben-linux@fluff.org>2009-05-18 11:26:03 -0400
commit070276d5d049f385763dee19112bea08f56c9a0d (patch)
tree5a32a885de72f18476ff067a25d8a159ac01629d /arch/arm/mach-s3c2410/mach-vr1000.c
parent75cbcff3729fe2568dff38d16d6494f8fb7f59fe (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/mach-vr1000.c')
-rw-r--r--arch/arm/mach-s3c2410/mach-vr1000.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-s3c2410/mach-vr1000.c b/arch/arm/mach-s3c2410/mach-vr1000.c
index 0507a7ec18ce..1628cc773a2c 100644
--- a/arch/arm/mach-s3c2410/mach-vr1000.c
+++ b/arch/arm/mach-s3c2410/mach-vr1000.c
@@ -278,19 +278,19 @@ static struct platform_device vr1000_dm9k1 = {
278 278
279static struct s3c24xx_led_platdata vr1000_led1_pdata = { 279static struct s3c24xx_led_platdata vr1000_led1_pdata = {
280 .name = "led1", 280 .name = "led1",
281 .gpio = S3C2410_GPB0, 281 .gpio = S3C2410_GPB(0),
282 .def_trigger = "", 282 .def_trigger = "",
283}; 283};
284 284
285static struct s3c24xx_led_platdata vr1000_led2_pdata = { 285static struct s3c24xx_led_platdata vr1000_led2_pdata = {
286 .name = "led2", 286 .name = "led2",
287 .gpio = S3C2410_GPB1, 287 .gpio = S3C2410_GPB(1),
288 .def_trigger = "", 288 .def_trigger = "",
289}; 289};
290 290
291static struct s3c24xx_led_platdata vr1000_led3_pdata = { 291static struct s3c24xx_led_platdata vr1000_led3_pdata = {
292 .name = "led3", 292 .name = "led3",
293 .gpio = S3C2410_GPB2, 293 .gpio = S3C2410_GPB(2),
294 .def_trigger = "", 294 .def_trigger = "",
295}; 295};
296 296
@@ -356,8 +356,8 @@ static struct clk *vr1000_clocks[] __initdata = {
356 356
357static void vr1000_power_off(void) 357static void vr1000_power_off(void)
358{ 358{
359 s3c2410_gpio_cfgpin(S3C2410_GPB9, S3C2410_GPIO_OUTPUT); 359 s3c2410_gpio_cfgpin(S3C2410_GPB(9), S3C2410_GPIO_OUTPUT);
360 s3c2410_gpio_setpin(S3C2410_GPB9, 1); 360 s3c2410_gpio_setpin(S3C2410_GPB(9), 1);
361} 361}
362 362
363static void __init vr1000_map_io(void) 363static void __init vr1000_map_io(void)