]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: v4l2-subdev: get rid of __V4L2_SUBDEV_MK_GET_TRY() macro
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Dec 2017 11:03:55 +0000 (06:03 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 8 Mar 2018 11:06:41 +0000 (06:06 -0500)
commitab9bb73a0664595b76bb6e4a7ae10064aa58379f
treee13ccac6d5bff26d10592c9768475152fc626584
parent39ad07b7de82bff26118a69e680cda3d081392dc
media: v4l2-subdev: get rid of __V4L2_SUBDEV_MK_GET_TRY() macro

X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com
media: v4l2-subdev: get rid of __V4L2_SUBDEV_MK_GET_TRY() macro

The __V4L2_SUBDEV_MK_GET_TRY() macro is used to define
3 functions that have the same arguments. The code of those
functions is simple enough to just declare them, de-obfuscating
the code.

While here, replace BUG_ON() by WARN_ON() as there's no reason
why to panic the Kernel if this fails.

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
include/media/v4l2-subdev.h