media: ov5640: Register device properties
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 13 May 2022 14:14:10 +0000 (15:14 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:34:18 +0000 (15:34 +0100)
commit1066fc1c2afdbe5977eae37314f0c21462e82b9a
tree77f40108620c35023fd01345d5c815c5d5cabe6a
parent66ed85eb7b33cf4f4623a1e71499ed433c850851
media: ov5640: Register device properties

Parse the device properties and register the rotation and orientation
V4L2 controls using v4l2_ctrl_new_fwnode_properties().

Remove the open-coded parsing of the rotation property and assume the
DTS is correct is providing either <0> or <180> as possible rotations.

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