From d5c4f24b2af991df2ec24df1a3f906049370f59f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 17 May 2022 15:02:39 +0200 Subject: bcm27xx: remove linux 5.10 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- ...c358743-Only-allow-supported-pixel-fmts-i.patch | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 target/linux/bcm27xx/patches-5.10/950-0304-media-i2c-tc358743-Only-allow-supported-pixel-fmts-i.patch (limited to 'target/linux/bcm27xx/patches-5.10/950-0304-media-i2c-tc358743-Only-allow-supported-pixel-fmts-i.patch') diff --git a/target/linux/bcm27xx/patches-5.10/950-0304-media-i2c-tc358743-Only-allow-supported-pixel-fmts-i.patch b/target/linux/bcm27xx/patches-5.10/950-0304-media-i2c-tc358743-Only-allow-supported-pixel-fmts-i.patch deleted file mode 100644 index ca2c70cc3b..0000000000 --- a/target/linux/bcm27xx/patches-5.10/950-0304-media-i2c-tc358743-Only-allow-supported-pixel-fmts-i.patch +++ /dev/null @@ -1,30 +0,0 @@ -From d542ce00f99420cce4ccaa9cb79e3a216c5ae583 Mon Sep 17 00:00:00 2001 -From: Dave Stevenson -Date: Fri, 10 Jul 2020 12:40:50 +0100 -Subject: [PATCH] media: i2c: tc358743: Only allow supported pixel fmts - in set_fmt - -Fix commit "media: tc358743: Return an appropriate colorspace from -tc358743_set_fmt" to ensure that the format passed in to set_fmt -is checked to be valid, and reset to the current format if not. - -Signed-off-by: Dave Stevenson ---- - drivers/media/i2c/tc358743.c | 6 ++++-- - 1 file changed, 4 insertions(+), 2 deletions(-) - ---- a/drivers/media/i2c/tc358743.c -+++ b/drivers/media/i2c/tc358743.c -@@ -1731,8 +1731,10 @@ static int tc358743_set_fmt(struct v4l2_ - u32 code = format->format.code; /* is overwritten by get_fmt */ - int ret = tc358743_get_fmt(sd, cfg, format); - -- format->format.code = code; -- format->format.colorspace = tc358743_g_colorspace(code); -+ if (code == MEDIA_BUS_FMT_RGB888_1X24 || -+ code == MEDIA_BUS_FMT_UYVY8_1X16) -+ format->format.code = code; -+ format->format.colorspace = tc358743_g_colorspace(format->format.code); - - if (ret) - return ret; -- cgit v1.2.3