Re: [PATCH v2 1/3] [media] include/media: split I2C headers from V4L2 core
Arnd Bergmann <[email protected]>
| Newsgroups | gmane.comp.video.mjpeg.user,gmane.linux.ports.sh.devel,gmane.linux.drivers.video-input-infrastructure,gmane.linux.ports.arm.kernel |
|---|---|
| Message-ID | <3946309.7qdIUtfOY1@wuerfel> |
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 <[email protected]> ------------------------------------------------------------------------------ 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