Blackfin: i2c-gpio boards: use GPIO_PF# defines
authorMike Frysinger <vapier@gentoo.org>
Fri, 2 Jul 2010 21:02:50 +0000 (21:02 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 22 Oct 2010 07:48:54 +0000 (03:48 -0400)
Rather than use raw numbers for the GPIO pins, use proper GPIO defines.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-bf533/boards/blackstamp.c
arch/blackfin/mach-bf533/boards/ezkit.c
arch/blackfin/mach-bf533/boards/stamp.c
arch/blackfin/mach-bf561/boards/ezkit.c

index 84a06f677dffa056dffc3048586cf7c1c4205959..20c102285bef85dcedf1b5ec83da1c73366a2bab 100644 (file)
@@ -368,8 +368,8 @@ static struct platform_device bfin_device_gpiokeys = {
 #include <linux/i2c-gpio.h>
 
 static struct i2c_gpio_platform_data i2c_gpio_data = {
-       .sda_pin                = 8,
-       .scl_pin                = 9,
+       .sda_pin                = GPIO_PF8,
+       .scl_pin                = GPIO_PF9,
        .sda_is_open_drain      = 0,
        .scl_is_open_drain      = 0,
        .udelay                 = 40,
index 054c8e699a827e0aec81619e2681545f7c1fabe3..a1cb8e7c1010b85cad7377b461bca9d17321dc4d 100644 (file)
@@ -422,8 +422,8 @@ static struct platform_device bfin_device_gpiokeys = {
 #include <linux/i2c-gpio.h>
 
 static struct i2c_gpio_platform_data i2c_gpio_data = {
-       .sda_pin                = 1,
-       .scl_pin                = 0,
+       .sda_pin                = GPIO_PF1,
+       .scl_pin                = GPIO_PF0,
        .sda_is_open_drain      = 0,
        .scl_is_open_drain      = 0,
        .udelay                 = 40,
index 5af7e6cb0b10c50fb98ad2db27b78baeb5725090..96fcfe582890b18eaccd7a5e0879c4c63f43c5fd 100644 (file)
@@ -497,8 +497,8 @@ static struct platform_device bfin_device_gpiokeys = {
 #include <linux/i2c-gpio.h>
 
 static struct i2c_gpio_platform_data i2c_gpio_data = {
-       .sda_pin                = 2,
-       .scl_pin                = 3,
+       .sda_pin                = GPIO_PF2,
+       .scl_pin                = GPIO_PF3,
        .sda_is_open_drain      = 0,
        .scl_is_open_drain      = 0,
        .udelay                 = 40,
index f1e27d2c36194a55cf6dc561f32a30ba957a4406..ab7a487975fd288aabf236710e520708280faaf6 100644 (file)
@@ -380,8 +380,8 @@ static struct platform_device bfin_device_gpiokeys = {
 #include <linux/i2c-gpio.h>
 
 static struct i2c_gpio_platform_data i2c_gpio_data = {
-       .sda_pin                = 1,
-       .scl_pin                = 0,
+       .sda_pin                = GPIO_PF1,
+       .scl_pin                = GPIO_PF0,
        .sda_is_open_drain      = 0,
        .scl_is_open_drain      = 0,
        .udelay                 = 40,