OSDN Git Service

media: v4l2-common: add V4L2_FRACT_COMPARE
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 20 Oct 2018 14:26:25 +0000 (10:26 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 23 Nov 2018 09:33:54 +0000 (04:33 -0500)
commit85de5e069a394b60bfa605086bae136da19a70fb
tree9ba55bf8a24416c9124819fad1321c22fee4817c
parentae9e196dad3b5c9b23b2ac2b21e91f548cd60d3b
media: v4l2-common: add V4L2_FRACT_COMPARE

Add macro to compare two v4l2_fract values in v4l2 common internal API.
The same macro FRACT_CMP() is used by vivid and bcm2835-camera.  This just
renames it to V4L2_FRACT_COMPARE in order to avoid namespace collision.

Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
include/media/v4l2-common.h