Commit 3d7dc883 authored by Mike Frysinger's avatar Mike Frysinger

Blackfin: i2c-gpio boards: use GPIO_PF# defines

Rather than use raw numbers for the GPIO pins, use proper GPIO defines.
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 41c3e334
...@@ -368,8 +368,8 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -368,8 +368,8 @@ static struct platform_device bfin_device_gpiokeys = {
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
static struct i2c_gpio_platform_data i2c_gpio_data = { static struct i2c_gpio_platform_data i2c_gpio_data = {
.sda_pin = 8, .sda_pin = GPIO_PF8,
.scl_pin = 9, .scl_pin = GPIO_PF9,
.sda_is_open_drain = 0, .sda_is_open_drain = 0,
.scl_is_open_drain = 0, .scl_is_open_drain = 0,
.udelay = 40, .udelay = 40,
......
...@@ -422,8 +422,8 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -422,8 +422,8 @@ static struct platform_device bfin_device_gpiokeys = {
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
static struct i2c_gpio_platform_data i2c_gpio_data = { static struct i2c_gpio_platform_data i2c_gpio_data = {
.sda_pin = 1, .sda_pin = GPIO_PF1,
.scl_pin = 0, .scl_pin = GPIO_PF0,
.sda_is_open_drain = 0, .sda_is_open_drain = 0,
.scl_is_open_drain = 0, .scl_is_open_drain = 0,
.udelay = 40, .udelay = 40,
......
...@@ -497,8 +497,8 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -497,8 +497,8 @@ static struct platform_device bfin_device_gpiokeys = {
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
static struct i2c_gpio_platform_data i2c_gpio_data = { static struct i2c_gpio_platform_data i2c_gpio_data = {
.sda_pin = 2, .sda_pin = GPIO_PF2,
.scl_pin = 3, .scl_pin = GPIO_PF3,
.sda_is_open_drain = 0, .sda_is_open_drain = 0,
.scl_is_open_drain = 0, .scl_is_open_drain = 0,
.udelay = 40, .udelay = 40,
......
...@@ -380,8 +380,8 @@ static struct platform_device bfin_device_gpiokeys = { ...@@ -380,8 +380,8 @@ static struct platform_device bfin_device_gpiokeys = {
#include <linux/i2c-gpio.h> #include <linux/i2c-gpio.h>
static struct i2c_gpio_platform_data i2c_gpio_data = { static struct i2c_gpio_platform_data i2c_gpio_data = {
.sda_pin = 1, .sda_pin = GPIO_PF1,
.scl_pin = 0, .scl_pin = GPIO_PF0,
.sda_is_open_drain = 0, .sda_is_open_drain = 0,
.scl_is_open_drain = 0, .scl_is_open_drain = 0,
.udelay = 40, .udelay = 40,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment