media: rp1: cfe: Expose find_format_by_pix()
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Fri, 29 Sep 2023 13:23:58 +0000 (16:23 +0300)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:20 +0000 (11:35 +0000)
Make find_format_by_pix() accessible to other files in the driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c
drivers/media/platform/raspberrypi/rp1_cfe/cfe.h

index e42af45..8d356be 100644 (file)
@@ -461,7 +461,7 @@ const struct cfe_fmt *find_format_by_code(u32 code)
        return NULL;
 }
 
-static const struct cfe_fmt *find_format_by_pix(u32 pixelformat)
+const struct cfe_fmt *find_format_by_pix(u32 pixelformat)
 {
        unsigned int i;
 
index 6d3baec..13a3852 100644 (file)
@@ -36,5 +36,6 @@ extern const struct v4l2_mbus_framefmt cfe_default_format;
 extern const struct v4l2_mbus_framefmt cfe_default_meta_format;
 
 const struct cfe_fmt *find_format_by_code(u32 code);
+const struct cfe_fmt *find_format_by_pix(u32 pixelformat);
 
 #endif