summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/gb-camera.h
diff options
context:
space:
mode:
authorEvgeniy Borisov <borisov_evgeniy@projectara.com>2016-05-31 11:33:10 +0300
committerGreg Kroah-Hartman <gregkh@google.com>2016-06-03 08:57:48 -0700
commit6c5ce637db01c33712db996a78a74b25f3a5e0e3 (patch)
tree2a2f6e3ca26459c0d4ec5673e5a1e062b9b93839 /drivers/staging/greybus/gb-camera.h
parent07f91c75b490f67b1684a3a4d2b708a19ab93676 (diff)
greybus: camera-gb: Extend gb camera module structure
Add additional information in gb camera module. - interface ID - reference count - release handle Signed-off-by: Evgeniy Borisov <eborisov@mm-sol.com> Reviewed-by: Gjorgji Rosikopulos <grosikopulos@mm-sol.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/gb-camera.h')
-rw-r--r--drivers/staging/greybus/gb-camera.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/greybus/gb-camera.h b/drivers/staging/greybus/gb-camera.h
index 63f8c922fa9a..b8651ed05244 100644
--- a/drivers/staging/greybus/gb-camera.h
+++ b/drivers/staging/greybus/gb-camera.h
@@ -105,12 +105,18 @@ struct gb_camera_ops {
* struct gb_camera_module - Represents greybus camera module.
* @priv: Module private data, passed to all camera operations.
* @ops: Greybus camera operation callbacks.
+ * @interface_id: Interface id of the module.
+ * @refcount: Reference counting object.
+ * @release: Module release function.
* @list: List entry in the camera modules list.
*/
struct gb_camera_module {
void *priv;
const struct gb_camera_ops *ops;
+ unsigned int interface_id;
+ struct kref refcount;
+ void (*release)(struct kref *kref);
struct list_head list; /* Global list */
};