diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2013-04-04 15:21:12 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 22:35:30 +0400 |
commit | f7f6ce2d09c86bd80ee11bd654a1ac1e8f5dfe13 (patch) | |
tree | e2a2e6ea773f4ae593ba07693decdbac5cee3533 /include/media/soc_camera.h | |
parent | b9d4b2da35d44117831c3382710f12a1f9965ed5 (diff) | |
download | linux-f7f6ce2d09c86bd80ee11bd654a1ac1e8f5dfe13.tar.xz |
[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/soc_camera.h')
-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 { struct mutex host_lock; /* Protect pipeline modifications */ unsigned char nr; /* Host number */ u32 capabilities; + struct soc_camera_device *icd; /* Currently attached client */ void *priv; const char *drv_name; struct soc_camera_host_ops *ops; |