balena-allwinner/layers/meta-balena-allwinner/recipes-kernel/linux/linux-mainline-4.19/0000-0069-media-hm5065-Port-to-4.17-drop-use-of-s_parm-g_parm-.patch
Vicentiu Galanopulo 065936bc48 recipes-kernel/linux: Rename linux to linux-mainline
Since the Armbian sources refer to linux 4.19.76 as
being linux-mainline, all the patches from linux-4.19
were moved to linux-mainline_4.19 and the linux_4.19.76
recipes was named accordingly.

This patch makes 4.19.76 as default version for linux

Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
2019-10-10 11:50:45 +02:00

73 lines
1.9 KiB
Diff

From 46beb097c9452520035e13c03c4ec0a66288c56b Mon Sep 17 00:00:00 2001
From: Ondrej Jirman <megous@megous.com>
Date: Fri, 20 Apr 2018 04:02:26 +0200
Subject: [PATCH 69/82] media: hm5065: Port to 4.17 - drop use of s_parm/g_parm
callbacks
---
drivers/media/i2c/hm5065.c | 42 --------------------------------------
1 file changed, 42 deletions(-)
diff --git a/drivers/media/i2c/hm5065.c b/drivers/media/i2c/hm5065.c
index 1f0896bd8dff..07308e190494 100644
--- a/drivers/media/i2c/hm5065.c
+++ b/drivers/media/i2c/hm5065.c
@@ -1801,46 +1801,6 @@ static int hm5065_enum_frame_interval(
return 0;
}
-static int hm5065_g_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *parms)
-{
- struct v4l2_captureparm *cp = &parms->parm.capture;
- struct v4l2_subdev_frame_interval fi;
- int ret;
-
- if (parms->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
- return -EINVAL;
-
- cp->capability = V4L2_CAP_TIMEPERFRAME;
- fi.pad = 0;
- ret = hm5065_g_frame_interval(sd, &fi);
- if (ret)
- return ret;
-
- cp->timeperframe = fi.interval;
- return 0;
-}
-
-static int hm5065_s_parm(struct v4l2_subdev *sd, struct v4l2_streamparm *parms)
-{
- struct v4l2_captureparm *cp = &parms->parm.capture;
- struct v4l2_subdev_frame_interval fi;
- int ret;
-
- if (parms->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
- return -EINVAL;
-
- fi.pad = 0;
- fi.interval = cp->timeperframe;
- cp->capability = V4L2_CAP_TIMEPERFRAME;
-
- ret = hm5065_s_frame_interval(sd, &fi);
- if (ret)
- return ret;
-
- cp->timeperframe = fi.interval;
- return 0;
-}
-
static int hm5065_get_fmt(struct v4l2_subdev *sd,
struct v4l2_subdev_pad_config *cfg,
struct v4l2_subdev_format *format)
@@ -2125,8 +2085,6 @@ static const struct v4l2_subdev_pad_ops hm5065_pad_ops = {
static const struct v4l2_subdev_video_ops hm5065_video_ops = {
.g_frame_interval = hm5065_g_frame_interval,
.s_frame_interval = hm5065_s_frame_interval,
- .g_parm = hm5065_g_parm,
- .s_parm = hm5065_s_parm,
.s_stream = hm5065_s_stream,
};
--
2.20.1