linux/drivers/media/pci/bt8xx
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
..
bt848.h
bt878.c media/bt8xx: Remove old powerpc cruft 2015-03-24 13:33:50 +11:00
bt878.h media/bt8xx: Remove old powerpc cruft 2015-03-24 13:33:50 +11:00
btcx-risc.c [media] btcx-risc: use swap() in btcx_sort_clips() 2015-07-06 08:25:49 -03:00
btcx-risc.h [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
bttv-audio-hook.c [media] bttv: fix audio hooks 2015-05-01 06:24:32 -03:00
bttv-audio-hook.h
bttv-cards.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
bttv-driver.c [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
bttv-gpio.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-i2c.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-05-02 14:38:53 -07:00
bttv-if.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-input.c [media] bt8xxx: Use monotonic time 2015-08-16 13:29:59 -03:00
bttv-risc.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv-vbi.c [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttv.h [media] media: remove emacs editor variables 2014-12-22 17:52:20 -02:00
bttvp.h [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
dst_ca.c [media] bt8xx: remove needless check 2015-06-05 11:26:35 -03:00
dst_ca.h
dst_common.h [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
dst_priv.h
dst.c [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
dvb-bt8xx.c Drivers: media: remove __dev* attributes. 2013-01-03 15:57:02 -08:00
dvb-bt8xx.h
Kconfig [media] bttv: Convert to generic TEA575x interface 2015-01-27 10:13:19 -02:00
Makefile [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00