]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm: of: Mark empty drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep static
authorMarek Vasut <marex@denx.de>
Sun, 12 Jun 2022 13:21:50 +0000 (15:21 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 12 Jun 2022 14:07:05 +0000 (16:07 +0200)
Mark empty implementations of drm_of_get_data_lanes_count and
drm_of_get_data_lanes_ep as static inline, just like the rest
of empty implementations of various functions in drm_of.h .
Add missing comma to drm_of_get_data_lanes_count_ep() .

Fixes: 8fbf544de381 ("drm: of: Add drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
To: dri-devel@lists.freedesktop.org
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220612132152.91052-1-marex@denx.de
include/drm/drm_of.h

index 92387eabcb6f0a1813e8f556ec74369b1b65c100..10ab58c4074678cfb125eef5919e4ea3d5aa547d 100644 (file)
@@ -112,16 +112,18 @@ drm_of_lvds_get_data_mapping(const struct device_node *port)
        return -EINVAL;
 }
 
-int drm_of_get_data_lanes_count(const struct device_node *endpoint,
-                               const unsigned int min, const unsigned int max)
+static inline int
+drm_of_get_data_lanes_count(const struct device_node *endpoint,
+                           const unsigned int min, const unsigned int max)
 {
        return -EINVAL;
 }
 
-int drm_of_get_data_lanes_count_ep(const struct device_node *port,
-                                  int port_reg, int reg
-                                  const unsigned int min,
-                                  const unsigned int max)
+static inline int
+drm_of_get_data_lanes_count_ep(const struct device_node *port,
+                              int port_reg, int reg,
+                              const unsigned int min,
+                              const unsigned int max)
 {
        return -EINVAL;
 }