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 <maxime.ripard@bootlin.com>
This commit is contained in:
Maxime Ripard
2018-07-16 21:04:18 +02:00
parent 2208d57b8f
commit 23be0e66a3
2 changed files with 5 additions and 5 deletions
+5
View File
@@ -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",
-5
View File
@@ -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