summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/saa6752hs.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-10-24 00:40:10 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-11-23 20:24:32 +0300
commitfd17e3a9a7886ec949ce269a396b67875b51ff45 (patch)
tree568c28742b8d1c58f5847757da7221fc5efb8688 /drivers/media/i2c/saa6752hs.c
parent0623979d8352efe18f83c4fad95a2e61df17b3e7 (diff)
downloadlinux-fd17e3a9a7886ec949ce269a396b67875b51ff45.tar.xz
media: i2c: Use accessors for pad config 'try_*' fields
The 'try_*' fields of the v4l2_subdev_pad_config structure are meant to be accessed through helper functions. Replace direct access with usage of the v4l2_subdev_get_pad_format(), v4l2_subdev_get_pad_crop() and v4l2_subdev_get_pad_compose() helpers. Signed-off-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>
Diffstat (limited to 'drivers/media/i2c/saa6752hs.c')
-rw-r--r--drivers/media/i2c/saa6752hs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/saa6752hs.c b/drivers/media/i2c/saa6752hs.c
index c106e7a7d1f4..82976aee5e86 100644
--- a/drivers/media/i2c/saa6752hs.c
+++ b/drivers/media/i2c/saa6752hs.c
@@ -595,7 +595,7 @@ static int saa6752hs_set_fmt(struct v4l2_subdev *sd,
f->colorspace = V4L2_COLORSPACE_SMPTE170M;
if (format->which == V4L2_SUBDEV_FORMAT_TRY) {
- sd_state->pads->try_fmt = *f;
+ *v4l2_subdev_get_pad_format(sd, sd_state, 0) = *f;
return 0;
}