From 23be0e66a35dff9430ee8875f5a55464c3c09162 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Mon, 16 Jul 2018 21:04:18 +0200 Subject: video: Make video_v4l2_format function private The video_v4l2_format function is defined as inline in the header, but not static. This will lead to a linker failure when you have multiple files including the header. Since it's not used anywhere but in video.c, move it there. Signed-off-by: Maxime Ripard --- src/video.c | 5 +++++ src/video.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/video.c b/src/video.c index 2b30e08..42a5821 100644 --- a/src/video.c +++ b/src/video.c @@ -34,6 +34,11 @@ #include "video.h" #include "utils.h" +static inline unsigned int video_v4l2_format(bool tiled_format) +{ + return tiled_format ? V4L2_PIX_FMT_MB32_NV12 : V4L2_PIX_FMT_NV12; +} + static struct video_format formats[] = { { .description = "NV12 YUV", diff --git a/src/video.h b/src/video.h index 021b869..e1cdcb8 100644 --- a/src/video.h +++ b/src/video.h @@ -37,11 +37,6 @@ struct video_format { unsigned int bpp; }; -inline unsigned int video_v4l2_format(bool tiled_format) -{ - return tiled_format ? V4L2_PIX_FMT_MB32_NV12 : V4L2_PIX_FMT_NV12; -} - struct video_format *video_format_find(bool tiled_format); #endif -- cgit v1.2.3