diff options
author | Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> | 2008-03-24 11:18:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:07:53 -0400 |
commit | 26f1b942156766c6ff1a70fb2ac463c6fce31309 (patch) | |
tree | 20799de356a6876dabbf1366963f849cb7f2889c /include/media/soc_camera.h | |
parent | 8be38c815e181402c777e033f40971a7be19cf8b (diff) |
V4L/DVB (7406): soc-camera: improve separation between soc_camera_ops and soc_camera_device
In case of muliple cameras, handled by the same driver, they can support
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r-- | include/media/soc_camera.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 3e48e435b21a..7a2fa3ed849e 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -38,8 +38,8 @@ struct soc_camera_device { | |||
38 | struct soc_camera_ops *ops; | 38 | struct soc_camera_ops *ops; |
39 | struct video_device *vdev; | 39 | struct video_device *vdev; |
40 | const struct soc_camera_data_format *current_fmt; | 40 | const struct soc_camera_data_format *current_fmt; |
41 | int (*probe)(struct soc_camera_device *icd); | 41 | const struct soc_camera_data_format *formats; |
42 | void (*remove)(struct soc_camera_device *icd); | 42 | int num_formats; |
43 | struct module *owner; | 43 | struct module *owner; |
44 | /* soc_camera.c private count. Only accessed with video_lock held */ | 44 | /* soc_camera.c private count. Only accessed with video_lock held */ |
45 | int use_count; | 45 | int use_count; |
@@ -106,6 +106,8 @@ struct soc_camera_data_format { | |||
106 | 106 | ||
107 | struct soc_camera_ops { | 107 | struct soc_camera_ops { |
108 | struct module *owner; | 108 | struct module *owner; |
109 | int (*probe)(struct soc_camera_device *); | ||
110 | void (*remove)(struct soc_camera_device *); | ||
109 | int (*init)(struct soc_camera_device *); | 111 | int (*init)(struct soc_camera_device *); |
110 | int (*release)(struct soc_camera_device *); | 112 | int (*release)(struct soc_camera_device *); |
111 | int (*start_capture)(struct soc_camera_device *); | 113 | int (*start_capture)(struct soc_camera_device *); |
@@ -121,8 +123,6 @@ struct soc_camera_ops { | |||
121 | int (*get_register)(struct soc_camera_device *, struct v4l2_register *); | 123 | int (*get_register)(struct soc_camera_device *, struct v4l2_register *); |
122 | int (*set_register)(struct soc_camera_device *, struct v4l2_register *); | 124 | int (*set_register)(struct soc_camera_device *, struct v4l2_register *); |
123 | #endif | 125 | #endif |
124 | const struct soc_camera_data_format *formats; | ||
125 | int num_formats; | ||
126 | int (*get_control)(struct soc_camera_device *, struct v4l2_control *); | 126 | int (*get_control)(struct soc_camera_device *, struct v4l2_control *); |
127 | int (*set_control)(struct soc_camera_device *, struct v4l2_control *); | 127 | int (*set_control)(struct soc_camera_device *, struct v4l2_control *); |
128 | const struct v4l2_queryctrl *controls; | 128 | const struct v4l2_queryctrl *controls; |