b5dcee225c
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> |
||
---|---|---|
.. | ||
include/mach | ||
am200epd.c | ||
am300epd.c | ||
balloon3.c | ||
capc7117.c | ||
cm-x2xx-pci.c | ||
cm-x2xx-pci.h | ||
cm-x2xx.c | ||
cm-x255.c | ||
cm-x270.c | ||
cm-x300.c | ||
colibri-evalboard.c | ||
colibri-pxa3xx.c | ||
colibri-pxa270-income.c | ||
colibri-pxa270.c | ||
colibri-pxa300.c | ||
colibri-pxa320.c | ||
corgi_pm.c | ||
corgi.c | ||
csb701.c | ||
csb726.c | ||
devices.c | ||
devices.h | ||
em-x270.c | ||
eseries.c | ||
ezx.c | ||
generic.c | ||
generic.h | ||
gumstix.c | ||
h5000.c | ||
himalaya.c | ||
hx4700.c | ||
icontrol.c | ||
idp.c | ||
irq.c | ||
Kconfig | ||
littleton.c | ||
lpd270.c | ||
lubbock.c | ||
magician.c | ||
mainstone.c | ||
Makefile | ||
Makefile.boot | ||
mfp-pxa2xx.c | ||
mfp-pxa3xx.c | ||
mioa701_bootresume.S | ||
mioa701.c | ||
mp900.c | ||
mxm8x10.c | ||
palm27x.c | ||
palmld.c | ||
palmt5.c | ||
palmtc.c | ||
palmte2.c | ||
palmtreo.c | ||
palmtx.c | ||
palmz72.c | ||
pcm027.c | ||
pcm990-baseboard.c | ||
pm.c | ||
poodle.c | ||
pxa2xx.c | ||
pxa3xx-ulpi.c | ||
pxa3xx.c | ||
pxa25x.c | ||
pxa27x.c | ||
pxa300.c | ||
pxa320.c | ||
pxa930.c | ||
pxa_cplds_irqs.c | ||
pxa-dt.c | ||
raumfeld.c | ||
reset.c | ||
saar.c | ||
sharpsl_pm.c | ||
sleep.S | ||
smemc.c | ||
spitz_pm.c | ||
spitz.c | ||
standby.S | ||
stargate2.c | ||
tavorevb.c | ||
tosa-bt.c | ||
tosa.c | ||
trizeps4.c | ||
viper.c | ||
vpac270.c | ||
xcep.c | ||
z2.c | ||
zeus.c | ||
zylonite_pxa300.c | ||
zylonite_pxa320.c | ||
zylonite.c |