Commit 6c5ce637 authored by Evgeniy Borisov's avatar Evgeniy Borisov Committed by Greg Kroah-Hartman

greybus: camera-gb: Extend gb camera module structure

Add additional information in gb camera module.
 - interface ID
 - reference count
 - release handle
Signed-off-by: default avatarEvgeniy Borisov <eborisov@mm-sol.com>
Reviewed-by: default avatarGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 07f91c75
...@@ -105,12 +105,18 @@ struct gb_camera_ops { ...@@ -105,12 +105,18 @@ struct gb_camera_ops {
* struct gb_camera_module - Represents greybus camera module. * struct gb_camera_module - Represents greybus camera module.
* @priv: Module private data, passed to all camera operations. * @priv: Module private data, passed to all camera operations.
* @ops: Greybus camera operation callbacks. * @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. * @list: List entry in the camera modules list.
*/ */
struct gb_camera_module { struct gb_camera_module {
void *priv; void *priv;
const struct gb_camera_ops *ops; const struct gb_camera_ops *ops;
unsigned int interface_id;
struct kref refcount;
void (*release)(struct kref *kref);
struct list_head list; /* Global list */ struct list_head list; /* Global list */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment