diff options
| author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-04-04 07:21:12 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 14:35:30 -0400 |
| commit | f7f6ce2d09c86bd80ee11bd654a1ac1e8f5dfe13 (patch) | |
| tree | e2a2e6ea773f4ae593ba07693decdbac5cee3533 /include/media | |
| parent | b9d4b2da35d44117831c3382710f12a1f9965ed5 (diff) | |
[media] soc-camera: move common code to soc_camera.c
All soc-camera host drivers include a pointer to an soc-camera device in
their host private struct to check, that only one client is connected.
Move this common code to soc_camera.c.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
| -rw-r--r-- | include/media/soc_camera.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 31a4bfe42194..db23a8f0c26b 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
| @@ -64,6 +64,7 @@ struct soc_camera_host { | |||
| 64 | struct mutex host_lock; /* Protect pipeline modifications */ | 64 | struct mutex host_lock; /* Protect pipeline modifications */ |
| 65 | unsigned char nr; /* Host number */ | 65 | unsigned char nr; /* Host number */ |
| 66 | u32 capabilities; | 66 | u32 capabilities; |
| 67 | struct soc_camera_device *icd; /* Currently attached client */ | ||
| 67 | void *priv; | 68 | void *priv; |
| 68 | const char *drv_name; | 69 | const char *drv_name; |
| 69 | struct soc_camera_host_ops *ops; | 70 | struct soc_camera_host_ops *ops; |
