Skip to contentSkip to conversation

i2c-gpio: Use linux/gpio.h rather than asm/gpio.h

PATCH Applied Mark Brown 2 participants 2 messages Feb 4, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 i2c-gpio: Use linux/gpio.h rather than asm/gpio.h

Direct inclusion of asm/gpio.h has been deprecated for a while now due to the cross platform gpiolib.

---
 drivers/i2c/busses/i2c-gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-gpio.c +1 -1
index a651779..3397572 100644
@@ -15,7 +15,7 @@
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 
-#include <asm/gpio.h>
+#include <linux/gpio.h>
 
 /* Toggle SDA by changing the direction of the pin */
 static void i2c_gpio_setsda_dir(void *data, int state)
Signature · 1 line
1.7.9.rc1

A message that is not in the archive (sent off-list or not yet received): 1328371447-23775-1-git-send-email-broonie-yzvPICuk2AATkU/[email protected]

Applied
#2 lore raw
Quoted 13 lines · Mark Brown

Direct inclusion of asm/gpio.h has been deprecated for a while now due to the cross platform gpiolib.

---
 drivers/i2c/busses/i2c-gpio.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/i2c/busses/i2c-gpio.c +0 -0
index a651779..3397572 100644

drivers/i2c/busses/i2c-gpio.c line 21

Quoted 8 lines
drivers/i2c/busses/i2c-gpio.c +1 -1
@@ -15,7 +15,7 @@
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 
-#include <asm/gpio.h>
+#include <linux/gpio.h>
 
 /* Toggle SDA by changing the direction of the pin */
 static void i2c_gpio_setsda_dir(void *data, int state)

Applied, thanks.

Signature · 1 line
Jean Delvare