Commit eb4b0ec7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] include/media: move platform_data to linux/platform_data/media

Let's not mix platform_data headers with the core headers. Instead, let's
create a subdir at linux/platform_data and move the headers to that
common place, adding it to MAINTAINERS.

The headers were moved with:
	mkdir include/linux/platform_data/media/; git mv include/media/gpio-ir-recv.h include/media/ir-rx51.h include/media/mmp-camera.h include/media/omap1_camera.h include/media/omap4iss.h include/media/s5p_hdmi.h include/media/si4713.h include/media/sii9234.h include/media/smiapp.h include/media/soc_camera.h include/media/soc_camera_platform.h include/media/timb_radio.h include/media/timb_video.h include/linux/platform_data/media/

And the references fixed with this script:
    MAIN_DIR="linux/platform_data/"
    PREV_DIR="media/"
    DIRS="media/"

    echo "Checking affected files" >&2
    for i in $DIRS; do
	for j in $(find include/$MAIN_DIR/$i -type f -name '*.h'); do
		 n=`basename $j`
		git grep -l $n
	done
    done|sort|uniq >files && (
	echo "Handling files..." >&2;
	echo "for i in \$(cat files|grep -v Documentation); do cat \$i | \\";
	(
		cd include/$MAIN_DIR;
		for j in $DIRS; do
			for i in $(ls $j); do
				echo "perl -ne 's,(include [\\\"\\<])$PREV_DIR($i)([\\\"\\>]),\1$MAIN_DIR$j\2\3,; print \$_' |\\";
			done;
		done;
		echo "cat > a && mv a \$i; done";
	);
	echo "Handling documentation..." >&2;
	echo "for i in MAINTAINERS \$(cat files); do cat \$i | \\";
	(
		cd include/$MAIN_DIR;
		for j in $DIRS; do
			for i in $(ls $j); do
				echo "  perl -ne 's,include/$PREV_DIR($i)\b,include/$MAIN_DIR$j\1,; print \$_' |\\";
			done;
		done;
		echo "cat > a && mv a \$i; done"
	);
    ) >script && . ./script
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Acked-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
parent d647f0b7
...@@ -47,7 +47,7 @@ Tested platforms ...@@ -47,7 +47,7 @@ Tested platforms
File list File list
--------- ---------
drivers/staging/media/omap4iss/ drivers/staging/media/omap4iss/
include/media/omap4iss.h include/linux/platform_data/media/omap4iss.h
References References
---------- ----------
......
...@@ -157,7 +157,7 @@ int main (int argc, char *argv[]) ...@@ -157,7 +157,7 @@ int main (int argc, char *argv[])
} }
The struct si4713_rnl and SI4713_IOC_MEASURE_RNL are defined under The struct si4713_rnl and SI4713_IOC_MEASURE_RNL are defined under
include/media/si4713.h. include/linux/platform_data/media/si4713.h.
Stereo/Mono and RDS subchannels Stereo/Mono and RDS subchannels
=============================== ===============================
......
...@@ -6895,6 +6895,7 @@ F: Documentation/video4linux/ ...@@ -6895,6 +6895,7 @@ F: Documentation/video4linux/
F: Documentation/DocBook/media/ F: Documentation/DocBook/media/
F: drivers/media/ F: drivers/media/
F: drivers/staging/media/ F: drivers/staging/media/
F: include/linux/platform_data/media/
F: include/media/ F: include/media/
F: include/uapi/linux/dvb/ F: include/uapi/linux/dvb/
F: include/uapi/linux/videodev2.h F: include/uapi/linux/videodev2.h
......
#ifndef __ASM_ARCH_CAMERA_H_ #ifndef __ASM_ARCH_CAMERA_H_
#define __ASM_ARCH_CAMERA_H_ #define __ASM_ARCH_CAMERA_H_
#include <media/omap1_camera.h> #include <linux/platform_data/media/omap1_camera.h>
void omap1_camera_init(void *); void omap1_camera_init(void *);
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <sound/tlv320aic3x.h> #include <sound/tlv320aic3x.h>
#include <sound/tpa6130a2-plat.h> #include <sound/tpa6130a2-plat.h>
#include <media/si4713.h> #include <linux/platform_data/media/si4713.h>
#include <linux/platform_data/leds-lp55xx.h> #include <linux/platform_data/leds-lp55xx.h>
#include <linux/platform_data/tsl2563.h> #include <linux/platform_data/tsl2563.h>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#include <video/omap-panel-data.h> #include <video/omap-panel-data.h>
#if defined(CONFIG_IR_RX51) || defined(CONFIG_IR_RX51_MODULE) #if defined(CONFIG_IR_RX51) || defined(CONFIG_IR_RX51_MODULE)
#include <media/ir-rx51.h> #include <linux/platform_data/media/ir-rx51.h>
#endif #endif
#include "mux.h" #include "mux.h"
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
#include <linux/platform_data/s3c-hsotg.h> #include <linux/platform_data/s3c-hsotg.h>
#include <linux/platform_data/dma-s3c24xx.h> #include <linux/platform_data/dma-s3c24xx.h>
#include <media/s5p_hdmi.h> #include <linux/platform_data/media/s5p_hdmi.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <linux/sh_intc.h> #include <linux/sh_intc.h>
#include <media/i2c/ov772x.h> #include <media/i2c/ov772x.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
#include <media/soc_camera_platform.h> #include <linux/platform_data/media/soc_camera_platform.h>
#include <media/drv-intf/sh_mobile_ceu.h> #include <media/drv-intf/sh_mobile_ceu.h>
#include <video/sh_mobile_lcdc.h> #include <video/sh_mobile_lcdc.h>
#include <asm/io.h> #include <asm/io.h>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/mmp-camera.h> #include <linux/platform_data/media/mmp-camera.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/gpio.h> #include <linux/gpio.h>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#include <linux/v4l2-dv-timings.h> #include <linux/v4l2-dv-timings.h>
#include <media/s5p_hdmi.h> #include <linux/platform_data/media/s5p_hdmi.h>
#include <media/v4l2-common.h> #include <media/v4l2-common.h>
#include <media/v4l2-dev.h> #include <media/v4l2-dev.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <linux/regulator/machine.h> #include <linux/regulator/machine.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <media/sii9234.h> #include <linux/platform_data/media/sii9234.h>
#include <media/v4l2-subdev.h> #include <media/v4l2-subdev.h>
MODULE_AUTHOR("Tomasz Stanislawski <t.stanislaws@samsung.com>"); MODULE_AUTHOR("Tomasz Stanislawski <t.stanislaws@samsung.com>");
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <media/omap1_camera.h> #include <linux/platform_data/media/omap1_camera.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
#include <media/drv-intf/soc_mediabus.h> #include <media/drv-intf/soc_mediabus.h>
#include <media/videobuf-dma-contig.h> #include <media/videobuf-dma-contig.h>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <media/v4l2-subdev.h> #include <media/v4l2-subdev.h>
#include <media/soc_camera.h> #include <media/soc_camera.h>
#include <media/soc_camera_platform.h> #include <linux/platform_data/media/soc_camera_platform.h>
struct soc_camera_platform_priv { struct soc_camera_platform_priv {
struct v4l2_subdev subdev; struct v4l2_subdev subdev;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <media/v4l2-ioctl.h> #include <media/v4l2-ioctl.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/videobuf-dma-contig.h> #include <media/videobuf-dma-contig.h>
#include <media/timb_video.h> #include <linux/platform_data/media/timb_video.h>
#define DRIVER_NAME "timb-video" #define DRIVER_NAME "timb-video"
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/module.h> #include <linux/module.h>
#include <media/timb_radio.h> #include <linux/platform_data/media/timb_radio.h>
#define DRIVER_NAME "timb-radio" #define DRIVER_NAME "timb-radio"
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h> #include <media/v4l2-ioctl.h>
#include <media/v4l2-event.h> #include <media/v4l2-event.h>
#include <media/si4713.h> #include <linux/platform_data/media/si4713.h>
#include "si4713.h" #include "si4713.h"
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <linux/gpio/consumer.h> #include <linux/gpio/consumer.h>
#include <media/v4l2-subdev.h> #include <media/v4l2-subdev.h>
#include <media/v4l2-ctrls.h> #include <media/v4l2-ctrls.h>
#include <media/si4713.h> #include <linux/platform_data/media/si4713.h>
#define SI4713_PRODUCT_NUMBER 0x0D #define SI4713_PRODUCT_NUMBER 0x0D
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <media/rc-core.h> #include <media/rc-core.h>
#include <media/gpio-ir-recv.h> #include <linux/platform_data/media/gpio-ir-recv.h>
#define GPIO_IR_DRIVER_NAME "gpio-rc-recv" #define GPIO_IR_DRIVER_NAME "gpio-rc-recv"
#define GPIO_IR_DEVICE_NAME "gpio_ir_recv" #define GPIO_IR_DEVICE_NAME "gpio_ir_recv"
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <media/lirc.h> #include <media/lirc.h>
#include <media/lirc_dev.h> #include <media/lirc_dev.h>
#include <media/ir-rx51.h> #include <linux/platform_data/media/ir-rx51.h>
#define LIRC_RX51_DRIVER_FEATURES (LIRC_CAN_SET_SEND_DUTY_CYCLE | \ #define LIRC_RX51_DRIVER_FEATURES (LIRC_CAN_SET_SEND_DUTY_CYCLE | \
LIRC_CAN_SET_SEND_CARRIER | \ LIRC_CAN_SET_SEND_CARRIER | \
......
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
#include <linux/spi/max7301.h> #include <linux/spi/max7301.h>
#include <linux/spi/mc33880.h> #include <linux/spi/mc33880.h>
#include <media/timb_radio.h> #include <linux/platform_data/media/timb_radio.h>
#include <media/timb_video.h> #include <linux/platform_data/media/timb_video.h>
#include <linux/timb_dma.h> #include <linux/timb_dma.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/wait.h> #include <linux/wait.h>
#include <media/omap4iss.h> #include <linux/platform_data/media/omap4iss.h>
#include "iss_regs.h" #include "iss_regs.h"
#include "iss_csiphy.h" #include "iss_csiphy.h"
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#ifndef OMAP4_ISS_CSI_PHY_H #ifndef OMAP4_ISS_CSI_PHY_H
#define OMAP4_ISS_CSI_PHY_H #define OMAP4_ISS_CSI_PHY_H
#include <media/omap4iss.h> #include <linux/platform_data/media/omap4iss.h>
struct iss_csi2_device; struct iss_csi2_device;
......
...@@ -21,4 +21,3 @@ struct gpio_ir_recv_platform_data { ...@@ -21,4 +21,3 @@ struct gpio_ir_recv_platform_data {
}; };
#endif /* __GPIO_IR_RECV_H__ */ #endif /* __GPIO_IR_RECV_H__ */
...@@ -34,4 +34,3 @@ struct s5p_hdmi_platform_data { ...@@ -34,4 +34,3 @@ struct s5p_hdmi_platform_data {
}; };
#endif /* S5P_HDMI_H */ #endif /* S5P_HDMI_H */
/* /*
* include/media/si4713.h * include/linux/platform_data/media/si4713.h
* *
* Board related data definitions for Si4713 i2c device driver. * Board related data definitions for Si4713 i2c device driver.
* *
......
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