aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2022-06-12 15:21:50 +0200
committerMarek Vasut <[email protected]>2022-06-12 16:07:05 +0200
commiteb6b94db2f4a585d4a9b8e503d7377d2a23c1104 (patch)
treeee4b358cbccb3ad96111aa3e4cc079622b99dded
parent16bd48dc2b3b08d8b3160182b42e51eb2c274706 (diff)
drm: of: Mark empty drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep static
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: fc801750b197 ("drm: of: Add drm_of_get_data_lanes_count and drm_of_get_data_lanes_ep") Reported-by: kernel test robot <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Cc: Andrzej Hajda <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Lucas Stach <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Robert Foss <[email protected]> Cc: Sam Ravnborg <[email protected]> To: [email protected] Acked-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--include/drm/drm_of.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h
index 92387eabcb6f..10ab58c40746 100644
--- a/include/drm/drm_of.h
+++ b/include/drm/drm_of.h
@@ -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;
}