linux/arch/arm/mach-davinci
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
..
include/mach ARM: Show proper respect for Heinrich Hertz by using the correct unit for frequency 2015-05-14 16:22:05 +01:00
aemif.c ARM: davinci: aemif: get rid of davinci-nand driver dependency on aemif 2014-02-23 20:33:18 +05:30
asp.h ARM: davinci: devices-da8xx: Add support for McASP2 on da830 2015-03-18 15:52:05 +05:30
board-da830-evm.c ARM: davinci: Use standard logging styles 2014-11-18 21:06:41 +05:30
board-da850-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-dm355-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-dm355-leopard.c ARM: davinci: remove checks for CONFIG_USB_MUSB_PERIPHERAL 2014-05-22 16:29:08 +05:30
board-dm365-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-dm644x-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-dm646x-evm.c [media] include/media: split I2C headers from V4L2 core 2015-11-17 06:57:11 -02:00
board-mityomapl138.c ARM: davinci: Use standard logging styles 2014-11-18 21:06:41 +05:30
board-neuros-osd2.c ARM: davinci: Use standard logging styles 2014-11-18 21:06:41 +05:30
board-omapl138-hawk.c ARM: driver updates for 3.13 2013-11-11 17:05:37 +09:00
board-sffsdr.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
clock.c ARM: davinci: clock: Correct return values for API functions 2015-10-07 16:41:29 +05:30
clock.h
common.c
cp_intc.c ARM: SoC platform updates for v4.3 2015-09-01 12:18:40 -07:00
cpuidle.c ARM: cpuidle: Remove duplicate header inclusion 2015-03-23 18:03:11 +01:00
da8xx-dt.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
da830.c This patch updates the davinci watchdog 2014-01-16 13:59:52 -08:00
da850.c ARM: appropriate __init annotation for const data 2015-07-28 13:55:27 +02:00
davinci.h ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
devices-da8xx.c ARM: davinci: Add dma_mask to eDMA devices 2015-10-14 19:57:11 +05:30
devices.c ARM: davinci: da8xx: fix multiple watchdog device registration 2014-03-06 19:08:29 +05:30
dm355.c ARM: davinci: Add dma_mask to eDMA devices 2015-10-14 19:57:11 +05:30
dm365.c ARM: davinci/common: Convert edma driver to handle one eDMA instance per driver 2015-10-14 19:57:11 +05:30
dm644x.c ARM: davinci: Add dma_mask to eDMA devices 2015-10-14 19:57:11 +05:30
dm646x.c ARM: davinci: Add dma_mask to eDMA devices 2015-10-14 19:57:11 +05:30
irq.c
Kconfig wlcore: remove wl12xx_platform_data 2015-03-24 09:48:14 -07:00
Makefile ARM: davinci: Remove CDCE949 driver 2015-01-20 19:29:58 +05:30
Makefile.boot ARM: davinci: enable da8xx build concurrently with older devices 2014-03-06 19:08:28 +05:30
mux.c ARM: davinci: davinci_cfg_reg cannot be init 2015-02-18 12:20:25 +01:00
mux.h
pm_domain.c arm: davinci: remove boilerplate code and use USE_PM_CLK_RUNTIME_OPS 2015-05-12 23:55:38 +02:00
pm.c ARM: mach-davinci: drop owner assignment from platform_drivers 2014-10-20 16:20:02 +02:00
psc.c
serial.c ARM: davinci: serial.c: remove unused serial_read_reg() 2015-01-14 15:56:12 +05:30
sleep.S ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ 2014-07-18 12:29:04 +01:00
sram.c arch/arm/mach-davinci/sram.c: use gen_pool_dma_alloc() to sram.c 2013-11-13 12:09:22 +09:00
time.c ARM/davinci/time: Migrate to new 'set-state' interface 2015-07-17 08:22:48 +05:30
usb.c