From 6c5ce637db01c33712db996a78a74b25f3a5e0e3 Mon Sep 17 00:00:00 2001 From: Evgeniy Borisov Date: Tue, 31 May 2016 11:33:10 +0300 Subject: [PATCH] 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 Reviewed-by: Gjorgji Rosikopulos Reviewed-by: Laurent Pinchart Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/gb-camera.h | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ }; -- 2.45.2