2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/drivers/media/i2c
Mauro Carvalho Chehab b5dcee225c [media] include/media: split I2C headers from V4L2 core
Currently, include/media is messy, as it contains both the V4L2 core
headers and some driver-specific headers on the same place. That makes
harder to identify what core headers should be documented and what
headers belong to I2C drivers that are included only by bridge/main
drivers that would require the functions provided by them.

Let's move those i2c specific files to its own subdirectory.

The files to move were produced via the following script:
	mkdir include/media/i2c
	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
	(cd include/media; for i in *.h; do n=`echo $i|sed s/.h$/.c/`; if [ -e ../../drivers/media/*/i2c/$n ]; then echo $i; git mv $i i2c/; fi; done)
	for i in include/media/*.h; do n=`basename $i`;  (for j in $(git grep -l $n); do dirname $j; done)|sort|uniq|grep -ve '^.$' > list; num=$(wc -l list|cut -d' ' -f1); if [ $num == 1 ]; then if [ "`grep i2c list`" != "" ]; then git mv $i include/media/i2c; fi; fi; done

And the references corrected via this script:
    MAIN_DIR="media/"
    PREV_DIR="media/"
    DIRS="i2c/"

    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

Merged Sakari Ailus patch that moves smiapp.h to include/media/i2c.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
2015-11-17 06:57:11 -02:00
..
cx25840 [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
m5mols [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
s5c73m3 [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
smiapp [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
soc_camera [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ad9389b.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adp1653.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adv7170.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7175.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7180.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
adv7183_regs.h [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
adv7183.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adv7343_regs.h [media] drivers: media: i2c: adv7343_regs.h: Fix typo in #ifndef 2014-09-21 20:12:13 -03:00
adv7343.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adv7393_regs.h
adv7393.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adv7511.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adv7604.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
adv7842.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ak881x.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
aptina-pll.c
aptina-pll.h
as3645a.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
bt819.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
bt856.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
bt866.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
cs53l32a.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
cs5345.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ir-kbd-i2c.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
Kconfig [media] tc358743: add missing Kconfig dependency/select 2015-09-03 13:47:07 -03:00
ks0127.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ks0127.h
lm3560.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
lm3646.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
m52790.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
Makefile [media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge 2015-07-17 09:59:28 -03:00
ml86v7667.c [media] i2c: fix platform_no_drv_owner.cocci warnings 2015-10-03 11:39:48 -03:00
msp3400-driver.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
msp3400-driver.h
msp3400-kthreads.c
mt9m032.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
mt9p031.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
mt9t001.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
mt9v011.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
mt9v032.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
noon010pc30.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ov2659.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ov7640.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
ov7670.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ov9650.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
s5k4ecgx.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
s5k5baf.c [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16 2015-06-10 11:43:19 -03:00
s5k6a3.c [media] Export I2C module alias information in missing drivers 2015-08-11 17:51:28 -03:00
s5k6aa.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
saa711x_regs.h [media] saa7115: Implement i2c_board_info.platform_data 2013-08-18 08:27:07 -03:00
saa717x.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa6588.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
saa6752hs.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa7110.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
saa7115.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
saa7127.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
saa7185.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
smiapp-pll.c [media] smiapp-pll: include linux/device.h in smiapp-pll.c, not in smiapp-pll.h 2014-12-23 11:29:01 -02:00
smiapp-pll.h [media] smiapp-pll: include linux/device.h in smiapp-pll.c, not in smiapp-pll.h 2014-12-23 11:29:01 -02:00
sony-btf-mpx.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
sr030pc30.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
tc358743_regs.h [media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge 2015-07-17 09:59:28 -03:00
tc358743.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
tda7432.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tda9840.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tea6415c.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tea6415c.h
tea6420.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tea6420.h
ths7303.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
ths8200_regs.h [media] media: i2c: ths8200: driver for TI video encoder 2013-06-17 09:52:31 -03:00
ths8200.c [media] media: drop call to v4l2_device_unregister_subdev() 2015-03-03 11:21:41 -03:00
tlv320aic23b.c [media] media/i2c/tlv320aic23: Remove compat control ops 2015-07-06 08:25:54 -03:00
tvaudio.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
tvp514x_regs.h
tvp514x.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
tvp5150_reg.h
tvp5150.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
tvp7002_reg.h
tvp7002.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
tw2804.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
tw9903.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
tw9906.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
uda1342.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
upd64031a.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
upd64083.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
vp27smpx.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
vpx3220.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
vs6624_regs.h
vs6624.c [media] v4l2: replace try_mbus_fmt by set_fmt 2015-05-01 08:48:49 -03:00
wm8739.c [media] i2c: Drop owner assignment from i2c_driver 2015-08-11 13:00:15 -03:00
wm8775.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00