]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit027d6d0496b48182a318fe6b1f437f149b588f87
tree77f40108620c35023fd01345d5c815c5d5cabe6a
parent26aa9d1adae16344d1e972ed37a5d7ab35717678
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