media: v4l: async: Introduce helpers for calling async ops callbacks
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 1 Sep 2017 12:27:32 +0000 (08:27 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 17:52:45 +0000 (13:52 -0400)
commitddddc18b219ada692704c5467d16fff8c79cf287
tree24871ae299239b3b40ea63664d4c99ab5b7f7462
parentb6ee3f0dcf43dc3e8dbbe9be9c4e728c8d52f1ba
media: v4l: async: Introduce helpers for calling async ops callbacks

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 <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-async.c