Re: [PATCH v8 12/21] v4l: async: Introduce helpers for calling async ops callbacks

2017-09-07 Thread Sakari Ailus
On Wed, Sep 06, 2017 at 09:50:36AM +0200, Hans Verkuil wrote: > On 09/05/2017 03:05 PM, Sakari Ailus wrote: > > Add three helper functions to call async operations callbacks. Besides > > simplifying callbacks, this allows async notifiers to have no ops set, > > i.e. it can be left NULL. > > What i

Re: [PATCH v8 12/21] v4l: async: Introduce helpers for calling async ops callbacks

2017-09-06 Thread Hans Verkuil
On 09/05/2017 03:05 PM, Sakari Ailus wrote: > Add three helper functions to call async operations callbacks. Besides > simplifying callbacks, this allows async notifiers to have no ops set, > i.e. it can be left NULL. What is the use-case of that? Anyway: Acked-by: Hans Verkuil Regards,

[PATCH v8 12/21] v4l: async: Introduce helpers for calling async ops callbacks

2017-09-05 Thread Sakari Ailus
Add three helper functions to call async operations callbacks. Besides simplifying callbacks, this allows async notifiers to have no ops set, i.e. it can be left NULL. Signed-off-by: Sakari Ailus --- drivers/media/v4l2-core/v4l2-async.c | 49 ++-- include/media/v4