media: ov5640: Add ov5640_is_csi2() function
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 13 May 2022 14:13:51 +0000 (15:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:16:46 +0000 (15:16 +0100)
commit8e823f5c8c11f44bf4bbe3972eea08ab7b003ff4
tree8cc661c0e9fdcdb348e64642c8b83a2200660461
parent8409d01707463c8a3f4cbb7e5ca119ab425a9528
media: ov5640: Add ov5640_is_csi2() function

Checking if the sensor is used in DVP or MIPI CSI-2 mode is a repeated
pattern which is about to be repeated more often.

Provide an inline function to shortcut that.

Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5640.c