[PATCH v12 54/86] media: ov2740: Signal common raw sensor model support

Sakari Ailus
2026-04-09T20:14:55Z

Add support for the CONFIG_MODEL control and signal support for the common
raw sensor model.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
---
drivers/media/i2c/ov2740.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c
index 833785ab419d..0efc69e58f13 100644
--- a/drivers/media/i2c/ov2740.c
+++ b/drivers/media/i2c/ov2740.c
@@ -823,7 +823,7 @@ static int ov2740_init_controls(struct ov2740 *ov2740)
int ret;

ctrl_hdlr = &ov2740->ctrl_handler;
- ret = v4l2_ctrl_handler_init(ctrl_hdlr, 15);
+ ret = v4l2_ctrl_handler_init(ctrl_hdlr, 16);
if (ret)
return ret;

@@ -893,6 +893,9 @@ static int ov2740_init_controls(struct ov2740 *ov2740)
v4l2_ctrl_new_std(ctrl_hdlr, NULL, V4L2_CID_METADATA_LAYOUT,
0, V4L2_METADATA_LAYOUT_OV2740,
1, V4L2_METADATA_LAYOUT_OV2740);
+ v4l2_ctrl_new_std(ctrl_hdlr, NULL, V4L2_CID_CONFIG_MODEL,
+ 0, V4L2_CONFIG_MODEL_COMMON_RAW_SENSOR,
+ 0, V4L2_CONFIG_MODEL_COMMON_RAW_SENSOR);

ret = v4l2_fwnode_device_parse(ov2740->dev, &props);
if (ret) {
--
2.47.3