1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.6/target/linux/bcm27xx/patches-6.6/0918-media-ov64a40-Name-the-subdev-state-variables-to-sta.patch
Ycarus (Yannick Chabanois) 12de1d2995 Add RPI kernel 6.6 support
2024-04-05 20:55:33 +02:00

83 lines
2.8 KiB
Diff

From 70dbd785a505cd2945c702b2dda8315b40a9ac97 Mon Sep 17 00:00:00 2001
From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Date: Thu, 29 Feb 2024 09:23:09 +0100
Subject: [PATCH 0918/1002] media: ov64a40: Name the subdev state variables to
'state'
The subdev state arguments passed to the v4l2 subdev operations are
named 'sd_state' or 'state'.
Increase the driver consistency and use 'state' wherever possible.
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
drivers/media/i2c/ov64a40.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/media/i2c/ov64a40.c b/drivers/media/i2c/ov64a40.c
index fcf2fd62ac13..adb5a96112ed 100644
--- a/drivers/media/i2c/ov64a40.c
+++ b/drivers/media/i2c/ov64a40.c
@@ -3072,7 +3072,7 @@ static int ov64a40_init_cfg(struct v4l2_subdev *sd,
}
static int ov64a40_enum_mbus_code(struct v4l2_subdev *sd,
- struct v4l2_subdev_state *sd_state,
+ struct v4l2_subdev_state *state,
struct v4l2_subdev_mbus_code_enum *code)
{
struct ov64a40 *ov64a40 = sd_to_ov64a40(sd);
@@ -3086,7 +3086,7 @@ static int ov64a40_enum_mbus_code(struct v4l2_subdev *sd,
}
static int ov64a40_enum_frame_size(struct v4l2_subdev *sd,
- struct v4l2_subdev_state *sd_state,
+ struct v4l2_subdev_state *state,
struct v4l2_subdev_frame_size_enum *fse)
{
struct ov64a40 *ov64a40 = sd_to_ov64a40(sd);
@@ -3110,12 +3110,12 @@ static int ov64a40_enum_frame_size(struct v4l2_subdev *sd,
}
static int ov64a40_get_selection(struct v4l2_subdev *sd,
- struct v4l2_subdev_state *sd_state,
+ struct v4l2_subdev_state *state,
struct v4l2_subdev_selection *sel)
{
switch (sel->target) {
case V4L2_SEL_TGT_CROP:
- sel->r = *v4l2_subdev_get_pad_crop(sd, sd_state, 0);
+ sel->r = *v4l2_subdev_get_pad_crop(sd, state, 0);
return 0;
@@ -3141,7 +3141,7 @@ static int ov64a40_get_selection(struct v4l2_subdev *sd,
}
static int ov64a40_set_format(struct v4l2_subdev *sd,
- struct v4l2_subdev_state *sd_state,
+ struct v4l2_subdev_state *state,
struct v4l2_subdev_format *fmt)
{
struct ov64a40 *ov64a40 = sd_to_ov64a40(sd);
@@ -3155,7 +3155,7 @@ static int ov64a40_set_format(struct v4l2_subdev *sd,
ov64a40_update_pad_fmt(ov64a40, mode, &fmt->format);
- format = v4l2_subdev_get_pad_format(sd, sd_state, 0);
+ format = v4l2_subdev_get_pad_format(sd, state, 0);
if (ov64a40->mode == mode && format->code == fmt->format.code)
return 0;
@@ -3166,7 +3166,7 @@ static int ov64a40_set_format(struct v4l2_subdev *sd,
int exp_max;
ov64a40->mode = mode;
- *v4l2_subdev_get_pad_crop(sd, sd_state, 0) = mode->analogue_crop;
+ *v4l2_subdev_get_pad_crop(sd, state, 0) = mode->analogue_crop;
/* Update control limits according to the new mode. */
timings = ov64a40_get_timings(ov64a40,
--
2.44.0