[media] move media platform data to linux/platform_data/media
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>
This commit is contained in:
parent
886aa71bd4
commit
a71daaa10e
18 changed files with 14 additions and 14 deletions
|
@ -177,7 +177,7 @@ struct platform_device *__init imx_add_imx_uart_1irq(
|
|||
const struct imxuart_platform_data *pdata);
|
||||
|
||||
#include <linux/platform_data/video-mx3fb.h>
|
||||
#include <linux/platform_data/camera-mx3.h>
|
||||
#include <linux/platform_data/media/camera-mx3.h>
|
||||
struct imx_ipu_core_data {
|
||||
resource_size_t iobase;
|
||||
resource_size_t synirq;
|
||||
|
@ -192,7 +192,7 @@ struct platform_device *__init imx_add_mx3_sdc_fb(
|
|||
const struct imx_ipu_core_data *data,
|
||||
struct mx3fb_platform_data *pdata);
|
||||
|
||||
#include <linux/platform_data/camera-mx2.h>
|
||||
#include <linux/platform_data/media/camera-mx2.h>
|
||||
struct imx_mx2_camera_data {
|
||||
const char *devid;
|
||||
resource_size_t iobasecsi;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <mach/irqs.h>
|
||||
#include <linux/platform_data/usb-ohci-pxa27x.h>
|
||||
#include <linux/platform_data/keypad-pxa27x.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
#include <mach/audio.h>
|
||||
#include <mach/hardware.h>
|
||||
#include <linux/platform_data/mmp_dma.h>
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#include <linux/platform_data/usb-ohci-pxa27x.h>
|
||||
#include <linux/platform_data/mmc-pxamci.h>
|
||||
#include <linux/platform_data/keypad-pxa27x.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
|
||||
#include "generic.h"
|
||||
#include "devices.h"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <linux/platform_data/usb-ohci-pxa27x.h>
|
||||
#include <mach/hardware.h>
|
||||
#include <linux/platform_data/keypad-pxa27x.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
|
||||
#include "devices.h"
|
||||
#include "generic.h"
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
#include <linux/platform_data/mmc-pxamci.h>
|
||||
#include <mach/udc.h>
|
||||
#include <mach/pxa27x-udc.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
#include <mach/audio.h>
|
||||
#include <mach/smemc.h>
|
||||
#include <media/soc_camera.h>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#include <linux/platform_data/usb-ohci-pxa27x.h>
|
||||
#include <mach/pxa2xx-regs.h>
|
||||
#include <linux/platform_data/asoc-palm27x.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
#include <mach/palm27x.h>
|
||||
|
||||
#include <sound/pxa2xx-lib.h>
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
#include <mach/palm27x.h>
|
||||
|
||||
#include <mach/pm.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
|
||||
#include <media/soc_camera.h>
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include <media/i2c/mt9v022.h>
|
||||
#include <media/soc_camera.h>
|
||||
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
#include <asm/mach/map.h>
|
||||
#include <mach/pxa27x.h>
|
||||
#include <mach/audio.h>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <linux/slab.h>
|
||||
#include <linux/videodev2.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_data/coda.h>
|
||||
#include <linux/platform_data/media/coda.h>
|
||||
#include <linux/reset.h>
|
||||
|
||||
#include <media/v4l2-ctrls.h>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <linux/videodev2.h>
|
||||
|
||||
#include <linux/platform_data/camera-mx2.h>
|
||||
#include <linux/platform_data/media/camera-mx2.h>
|
||||
|
||||
#include <asm/dma.h>
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <media/soc_camera.h>
|
||||
#include <media/drv-intf/soc_mediabus.h>
|
||||
|
||||
#include <linux/platform_data/camera-mx3.h>
|
||||
#include <linux/platform_data/media/camera-mx3.h>
|
||||
#include <linux/platform_data/dma-imx.h>
|
||||
|
||||
#define MX3_CAM_DRV_NAME "mx3-camera"
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include <linux/videodev2.h>
|
||||
|
||||
#include <mach/dma.h>
|
||||
#include <linux/platform_data/camera-pxa.h>
|
||||
#include <linux/platform_data/media/camera-pxa.h>
|
||||
|
||||
#define PXA_CAM_VERSION "0.0.6"
|
||||
#define PXA_CAM_DRV_NAME "pxa27x-camera"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/platform_data/camera-rcar.h>
|
||||
#include <linux/platform_data/media/camera-rcar.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
Loading…
Reference in a new issue