
Add the latest linux available from https://github.com/armbian/build commit de58ac1faac92724c6449db12c22affaeb003875, tag: sunxi-5.3, alongside all the patches that it comes with. Signed-off-by: Vicentiu Galanopulo <vicentiu@balena.io>
73 lines
1.9 KiB
Diff
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
|
|
|