media: v4l: async: Ensure only unique fwnodes are registered to notifiers
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 20 Sep 2017 07:51:54 +0000 (03:51 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 17:58:23 +0000 (13:58 -0400)
commit466cae66eaa13c4895a80c19d7d8d3019c46ae6b
tree2a14fce1c62f080f122e38bf2b77a41a335ef5eb
parent2cab00bb076b9f0e8442e3d72425843d2b441143
media: v4l: async: Ensure only unique fwnodes are registered to notifiers

While registering a notifier, check that each newly added fwnode is
unique, and return an error if it is not. Also check that a newly added
notifier does not have the same fwnodes twice.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
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