Browse Source

i2c: mux: gpio: move header to platform_data

This header only contains platform_data. Move it to the proper directory.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com>
Wolfram Sang 7 years ago
parent
commit
62ea22c495

+ 2 - 2
Documentation/i2c/muxes/i2c-mux-gpio

@@ -30,12 +30,12 @@ i2c-mux-gpio uses the platform bus, so you need to provide a struct
 platform_device with the platform_data pointing to a struct
 platform_device with the platform_data pointing to a struct
 i2c_mux_gpio_platform_data with the I2C adapter number of the master
 i2c_mux_gpio_platform_data with the I2C adapter number of the master
 bus, the number of bus segments to create and the GPIO pins used
 bus, the number of bus segments to create and the GPIO pins used
-to control it. See include/linux/i2c-mux-gpio.h for details.
+to control it. See include/linux/platform_data/i2c-mux-gpio.h for details.
 
 
 E.G. something like this for a MUX providing 4 bus segments
 E.G. something like this for a MUX providing 4 bus segments
 controlled through 3 GPIO pins:
 controlled through 3 GPIO pins:
 
 
-#include <linux/i2c-mux-gpio.h>
+#include <linux/platform_data/i2c-mux-gpio.h>
 #include <linux/platform_device.h>
 #include <linux/platform_device.h>
 
 
 static const unsigned myboard_gpiomux_gpios[] = {
 static const unsigned myboard_gpiomux_gpios[] = {

+ 1 - 1
MAINTAINERS

@@ -5885,7 +5885,7 @@ M:	Peter Korsgaard <peter.korsgaard@barco.com>
 L:	linux-i2c@vger.kernel.org
 L:	linux-i2c@vger.kernel.org
 S:	Supported
 S:	Supported
 F:	drivers/i2c/muxes/i2c-mux-gpio.c
 F:	drivers/i2c/muxes/i2c-mux-gpio.c
-F:	include/linux/i2c-mux-gpio.h
+F:	include/linux/platform_data/i2c-mux-gpio.h
 F:	Documentation/i2c/muxes/i2c-mux-gpio
 F:	Documentation/i2c/muxes/i2c-mux-gpio
 
 
 GENERIC HDLC (WAN) DRIVERS
 GENERIC HDLC (WAN) DRIVERS

+ 1 - 1
drivers/i2c/busses/i2c-i801.c

@@ -106,7 +106,7 @@
 
 
 #if IS_ENABLED(CONFIG_I2C_MUX_GPIO) && defined CONFIG_DMI
 #if IS_ENABLED(CONFIG_I2C_MUX_GPIO) && defined CONFIG_DMI
 #include <linux/gpio.h>
 #include <linux/gpio.h>
-#include <linux/i2c-mux-gpio.h>
+#include <linux/platform_data/i2c-mux-gpio.h>
 #endif
 #endif
 
 
 /* I801 SMBus address offsets */
 /* I801 SMBus address offsets */

+ 1 - 1
drivers/i2c/muxes/i2c-mux-gpio.c

@@ -10,7 +10,7 @@
 
 
 #include <linux/i2c.h>
 #include <linux/i2c.h>
 #include <linux/i2c-mux.h>
 #include <linux/i2c-mux.h>
-#include <linux/i2c-mux-gpio.h>
+#include <linux/platform_data/i2c-mux-gpio.h>
 #include <linux/platform_device.h>
 #include <linux/platform_device.h>
 #include <linux/module.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/slab.h>

+ 0 - 0
include/linux/i2c-mux-gpio.h → include/linux/platform_data/i2c-mux-gpio.h