• Hans Verkuil's avatar
    [media] v4l2-of: fix compiler errors if CONFIG_OF is undefined · 480856f3
    Hans Verkuil authored
    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: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    480856f3
v4l2-of.h 3.52 KB