Skip to contentSkip to conversation

I2C-GPIO: Don't include the asm/gpio.h directly

PATCH In review Kyungmin Park 3 participants 3 messages Sep 14, 2010 – Sep 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C-GPIO: Don't include the asm/gpio.h directly

Don't include asm/gpio.h directly. Use the linux/gpio.h.

---

drivers/i2c/busses/i2c-gpio.c +1 -1
index d9aa9a6..0c1cc37 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)
#1 lore raw
Quoted 3 lines · Kyungmin Park

Don't include asm/gpio.h directly. Use the linux/gpio.h.

will merge this, unless Jean wants to do it, at the next merge window.

Quoted 18 lines

---

drivers/i2c/busses/i2c-gpio.c +1 -2
index d9aa9a6..0c1cc37 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)
--

To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
-- 
Ben

Q:      What's a light-year?
A:      One-third less calories than a regular year.
#2 lore raw
Quoted 6 lines · Ben Dooks
Quoted 3 lines · Kyungmin Park

Don't include asm/gpio.h directly. Use the linux/gpio.h.

will merge this, unless Jean wants to do it, at the next merge window.

Please do, i2c-gpio is mostly used on embedded systems.

Thanks,

Signature · 1 line
Jean Delvare