I2C-GPIO: Don't include the asm/gpio.h directly
Subsystems (2)
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.
Signed-off-by Kyungmin Park <[email protected]>
---
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)
Quoted 3 lines · Kyungmin Park
Don't include
asm/gpio.hdirectly. Use thelinux/gpio.h.Signed-off-by Kyungmin Park <[email protected]>
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@@ -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.
Quoted 6 lines · Ben Dooks
Quoted 3 lines · Kyungmin Park
Don't include
asm/gpio.hdirectly. Use thelinux/gpio.h.Signed-off-by Kyungmin Park <[email protected]>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