mirror of https://gitee.com/openkylin/linux.git
a71daaa10e
Now that media has its own subdirectory inside platform_data, let's move the headers that are already there to such subdir. After moving those files, the references were adjusted using this script: MAIN_DIR="linux/platform_data/" PREV_DIR="linux/platform_data/" DIRS="media/" 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 Suggested-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
devices-common.h | ||
devices.c | ||
platform-fec.c | ||
platform-flexcan.c | ||
platform-fsl-usb2-udc.c | ||
platform-gpio-mxc.c | ||
platform-gpio_keys.c | ||
platform-imx-dma.c | ||
platform-imx-fb.c | ||
platform-imx-i2c.c | ||
platform-imx-keypad.c | ||
platform-imx-ssi.c | ||
platform-imx-uart.c | ||
platform-imx2-wdt.c | ||
platform-imx21-hcd.c | ||
platform-imx27-coda.c | ||
platform-ipu-core.c | ||
platform-mx2-camera.c | ||
platform-mx2-emma.c | ||
platform-mxc-ehci.c | ||
platform-mxc-mmc.c | ||
platform-mxc_nand.c | ||
platform-mxc_rnga.c | ||
platform-mxc_rtc.c | ||
platform-mxc_w1.c | ||
platform-pata_imx.c | ||
platform-sdhci-esdhc-imx.c | ||
platform-spi_imx.c |