V4L/DVB (13648): soc-camera: add a private field to struct soc_camera_link
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 11 Dec 2009 14:15:06 +0000 (11:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 16 Dec 2009 11:27:18 +0000 (09:27 -0200)
Up to now, if a client driver needed platform data apart from those contained
in struct soc_camera_link, it had to embed the struct into its own object. This
makes the use of such a driver in configurations other than soc-camera

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/soc_camera.h

index 218639f..831efff 100644 (file)
@@ -104,6 +104,8 @@ struct soc_camera_link {
        int i2c_adapter_id;
        struct i2c_board_info *board_info;
        const char *module_name;
+       void *priv;
+
        /*
         * For non-I2C devices platform platform has to provide methods to
         * add a device to the system and to remove