bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1200-media-rp1-cfe-Expose-find_format_by_pix.patch
1 From d978e784f433346d3676b5de805b3cea36b835c4 Mon Sep 17 00:00:00 2001
2 From: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
3 Date: Fri, 29 Sep 2023 16:23:58 +0300
4 Subject: [PATCH] media: rp1: cfe: Expose find_format_by_pix()
5
6 Make find_format_by_pix() accessible to other files in the driver.
7
8 Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
9 ---
10 drivers/media/platform/raspberrypi/rp1_cfe/cfe.c | 2 +-
11 drivers/media/platform/raspberrypi/rp1_cfe/cfe.h | 1 +
12 2 files changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
15 +++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
16 @@ -461,7 +461,7 @@ const struct cfe_fmt *find_format_by_cod
17 return NULL;
18 }
19
20 -static const struct cfe_fmt *find_format_by_pix(u32 pixelformat)
21 +const struct cfe_fmt *find_format_by_pix(u32 pixelformat)
22 {
23 unsigned int i;
24
25 --- a/drivers/media/platform/raspberrypi/rp1_cfe/cfe.h
26 +++ b/drivers/media/platform/raspberrypi/rp1_cfe/cfe.h
27 @@ -36,5 +36,6 @@ extern const struct v4l2_mbus_framefmt c
28 extern const struct v4l2_mbus_framefmt cfe_default_meta_format;
29
30 const struct cfe_fmt *find_format_by_code(u32 code);
31 +const struct cfe_fmt *find_format_by_pix(u32 pixelformat);
32
33 #endif