OpenCloudOS-Kernel/drivers/media/pci/cx18
Mauro Carvalho Chehab d647f0b70c [media] include/media: move driver interface headers to a separate dir
Let's not mix headers used by the core with those headers that
are needed by some driver-specific interface header.

The headers used on drivers were manually moved using:
    mkdir include/media/drv-intf/
    git mv include/media/cx2341x.h include/media/cx25840.h \
	include/media/exynos-fimc.h include/media/msp3400.h \
	include/media/s3c_camif.h include/media/saa7146.h \
	include/media/saa7146_vv.h  include/media/sh_mobile_ceu.h \
	include/media/sh_mobile_csi2.h include/media/sh_vou.h \
	include/media/si476x.h include/media/soc_mediabus.h \
	include/media/tea575x.h include/media/drv-intf/

And the references for those headers were corrected using:

    MAIN_DIR="media/"
    PREV_DIR="media/"
    DIRS="drv-intf/"

    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: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
2015-11-17 06:57:29 -02:00
..
Kconfig
Makefile
cx18-alsa-main.c [media] cx18: embed video_device 2015-04-03 00:05:36 -03:00
cx18-alsa-mixer.c
cx18-alsa-mixer.h
cx18-alsa-pcm.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-alsa-pcm.h [media] cx18/ivtv: fix regression: remove __init from a non-init function 2013-02-11 18:18:14 -02:00
cx18-alsa.h [media] cx18: remove duplicate CX18_ALSA_DBGFLG_WARN define 2014-07-04 16:09:57 -03:00
cx18-audio.c
cx18-audio.h
cx18-av-audio.c
cx18-av-core.c [media] v4l2: replace s_mbus_fmt by set_fmt 2015-05-01 08:52:34 -03:00
cx18-av-core.h [media] cx18: remove g_chip_ident support 2013-06-17 08:41:17 -03:00
cx18-av-firmware.c
cx18-av-vbi.c
cx18-cards.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
cx18-cards.h [media] cx18: add device_caps support 2014-12-02 11:28:48 -02:00
cx18-controls.c [media] v4l2: replace s_mbus_fmt by set_fmt in bridge drivers 2015-05-01 09:01:16 -03:00
cx18-controls.h
cx18-driver.c [media] cx18: avoid going past input/audio array 2015-04-30 13:15:31 -03:00
cx18-driver.h [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
cx18-dvb.c
cx18-dvb.h
cx18-fileops.c [media] cx18: add support for control events 2015-04-08 06:41:17 -03:00
cx18-fileops.h
cx18-firmware.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-firmware.h
cx18-gpio.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx18-gpio.h
cx18-i2c.c [media] media: cx18, ivtv: eliminate unnecessary array index checks 2013-02-05 19:19:44 -02:00
cx18-i2c.h
cx18-io.c
cx18-io.h
cx18-ioctl.c [media] v4l2: replace s_mbus_fmt by set_fmt in bridge drivers 2015-05-01 09:01:16 -03:00
cx18-ioctl.h [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
cx18-irq.c
cx18-irq.h
cx18-mailbox.c [media] use v4l2_get_timestamp where possible 2015-10-01 08:29:23 -03:00
cx18-mailbox.h
cx18-queue.c [media] pci drivers: use %zu instead of %zd 2014-09-26 06:51:00 -03:00
cx18-queue.h
cx18-scb.c
cx18-scb.h
cx18-streams.c [media] cx18: add missing caps for the PCM video device 2015-05-01 07:34:50 -03:00
cx18-streams.h [media] cx18: embed video_device 2015-04-03 00:05:36 -03:00
cx18-vbi.c [media] drivers/media/pci: use memmove for overlapping regions 2013-02-05 19:26:38 -02:00
cx18-vbi.h
cx18-version.h
cx18-video.c
cx18-video.h
cx23418.h [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00