From: Evgeniy Borisov Date: Tue, 31 May 2016 08:33:10 +0000 (+0300) Subject: greybus: camera-gb: Extend gb camera module structure X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6c5ce637db01c33712db996a78a74b25f3a5e0e3;p=linux-beck.git 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 --- 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 */ };