summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2009-12-11 11:15:06 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-16 09:27:18 -0200
commit3fd7ceffddd52c2f8c004a7999ccb705d592cbfd (patch)
treeb4e3f818eac7146e0020735f81e915eef046a6f0
parentee81152ff007a94f90327809566a4b7ff771ffd3 (diff)
downloadlwn-3fd7ceffddd52c2f8c004a7999ccb705d592cbfd.tar.gz
lwn-3fd7ceffddd52c2f8c004a7999ccb705d592cbfd.zip
V4L/DVB (13648): soc-camera: add a private field to struct soc_camera_link
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>
-rw-r--r--include/media/soc_camera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index 218639f133d3..831efffaf2ae 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -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