On Monday 16 November 2015 09:00:43 Mauro Carvalho Chehab wrote: > 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 > >
Acked-by: Arnd Bergmann <a...@arndb.de> ------------------------------------------------------------------------------ Presto, an open source distributed SQL query engine for big data, initially developed by Facebook, enables you to easily query your data on Hadoop in a more interactive manner. Teradata is also now providing full enterprise support for Presto. Download a free open source copy now. http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140 _______________________________________________ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users