diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2015-04-28 02:41:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-28 07:33:45 -0400 |
commit | 480856f3b462d5b8d24e40ac3693c5620bdd5617 (patch) | |
tree | 7be43d9357e3403ed7c0c878714f4176c60cbbd7 /include/media/v4l2-of.h | |
parent | 074c57a25fa2c83a264f3fdbb99a9fef0229884d (diff) |
[media] v4l2-of: fix compiler errors if CONFIG_OF is undefined
You must use static inline otherwise you get these errors if CONFIG_OF is not defined:
In file included from drivers/media/platform/soc_camera/soc_camera.c:39:0:
include/media/v4l2-of.h:112:13: warning: 'v4l2_of_free_endpoint' defined but not used [-Wunused-function]
static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint)
^
In file included from drivers/media/platform/soc_camera/atmel-isi.c:28:0:
include/media/v4l2-of.h:112:13: warning: 'v4l2_of_free_endpoint' defined but not used [-Wunused-function]
static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint)
^
In file included from drivers/media/platform/soc_camera/rcar_vin.c:36:0:
include/media/v4l2-of.h:112:13: warning: 'v4l2_of_free_endpoint' defined but not used [-Wunused-function]
static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint)
^
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/v4l2-of.h')
-rw-r--r-- | include/media/v4l2-of.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/v4l2-of.h b/include/media/v4l2-of.h index 241e98aee40e..4dc34b245d47 100644 --- a/include/media/v4l2-of.h +++ b/include/media/v4l2-of.h | |||
@@ -103,13 +103,13 @@ static inline int v4l2_of_parse_endpoint(const struct device_node *node, | |||
103 | return -ENOSYS; | 103 | return -ENOSYS; |
104 | } | 104 | } |
105 | 105 | ||
106 | struct v4l2_of_endpoint *v4l2_of_alloc_parse_endpoint( | 106 | static inline struct v4l2_of_endpoint *v4l2_of_alloc_parse_endpoint( |
107 | const struct device_node *node) | 107 | const struct device_node *node) |
108 | { | 108 | { |
109 | return NULL; | 109 | return NULL; |
110 | } | 110 | } |
111 | 111 | ||
112 | static void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint) | 112 | static inline void v4l2_of_free_endpoint(struct v4l2_of_endpoint *endpoint) |
113 | { | 113 | { |
114 | } | 114 | } |
115 | 115 | ||