[PATCH] media: i2c: Add ov2732 image sensor driver cleanup

From: Walter Werner Schneider

Date: Wed Mar 11 2026 - 13:27:25 EST


A small set of changes:
- Updated copyright year.
- Removed redundant parentheses.
- Removed endpoint check, see Dependencies for required patch set.

Dependencies:
- media: i2c: Add ov2732 image sensor driver
https://lore.kernel.org/r/20260105-ov2732-driver-v6-0-95c1b0b0ba7b@xxxxxxxxxxxxx
- media: v4l2-fwnode: Return -EPROBE_DEFER on parsing NULL endpoints
https://lore.kernel.org/linux-media/20260310141157.1186325-1-sakari.ailus@xxxxxxxxxxxxxxx/

Signed-off-by: Walter Werner Schneider <contact@xxxxxxxxxxxxx>
---
A patch to be applied on the v6 version of the ov2732 driver.

P.S. Sorry for the misunderstanding, it wasn't clear to me that I should
just send a diff on top of v6 instead of sending a v7.
---
drivers/media/i2c/ov2732.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/media/i2c/ov2732.c b/drivers/media/i2c/ov2732.c
index d33e7b6e3762f0e93e199f36dc2d77f95ec5b414..40035320fec631c098f77c433360599905805d2d 100644
--- a/drivers/media/i2c/ov2732.c
+++ b/drivers/media/i2c/ov2732.c
@@ -3,7 +3,7 @@
* ov2732 driver
*
* Copyright (C) 2017 Fuzhou Rockchip Electronics Co., Ltd.
- * Copyright (C) 2025 Walter Werner Schneider <contact@xxxxxxxxxxxxx>
+ * Copyright (C) 2025-2026 Walter Werner Schneider <contact@xxxxxxxxxxxxx>
*/

#include <linux/clk.h>
@@ -491,11 +491,11 @@ static int ov2732_set_ctrl(struct v4l2_ctrl *ctrl)
case V4L2_CID_EXPOSURE:
/* Lowest 4 bits are fraction bits. */
cci_write(ov2732->regmap, OV2732_REG_EXPOSURE,
- ((u32)ctrl->val) << 4, &ret);
+ (u32)ctrl->val << 4, &ret);
break;
case V4L2_CID_VBLANK:
cci_write(ov2732->regmap, OV2732_REG_VTS,
- (format->height + ctrl->val), &ret);
+ format->height + ctrl->val, &ret);
break;
case V4L2_CID_TEST_PATTERN:
cci_write(ov2732->regmap, OV2732_REG_TEST_PATTERN,
@@ -608,10 +608,6 @@ static int ov2632_probe_dt(struct ov2732 *ov2732)
int ret;

ep = fwnode_graph_get_endpoint_by_id(fwnode, 0, 0, 0);
- if (!ep)
- return dev_err_probe(ov2732->dev, -EPROBE_DEFER,
- "waiting for fwnode graph endpoint\n");
-
ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg);
fwnode_handle_put(ep);
if (ret) {

---
base-commit: bb1048a0531ffda0c6e871c341d388735cfcc807
change-id: 20260311-ov2732-driver-cleanup-a6cbfb992a7d

Best regards,
--
Walter Werner Schneider <contact@xxxxxxxxxxxxx>