From: Evgeniy Borisov Date: Tue, 31 May 2016 08:33:10 +0000 (+0300) Subject: greybus: camera-gb: Extend gb camera module structure X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~294 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c5ce637db01c33712db996a78a74b25f3a5e0e3;p=platform%2Fkernel%2Flinux-rpi.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 63f8c92..b8651ed 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 */ };