Commit 327bc443 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Thierry Reding

drm/panel: Constify device node argument to of_drm_find_panel()

The argument is never modified by the function, make it const.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 0c744ea4
...@@ -137,7 +137,7 @@ EXPORT_SYMBOL(drm_panel_detach); ...@@ -137,7 +137,7 @@ EXPORT_SYMBOL(drm_panel_detach);
* Return: A pointer to the panel registered for the specified device tree * Return: A pointer to the panel registered for the specified device tree
* node or NULL if no panel matching the device tree node can be found. * node or NULL if no panel matching the device tree node can be found.
*/ */
struct drm_panel *of_drm_find_panel(struct device_node *np) struct drm_panel *of_drm_find_panel(const struct device_node *np)
{ {
struct drm_panel *panel; struct drm_panel *panel;
......
...@@ -193,9 +193,9 @@ int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector); ...@@ -193,9 +193,9 @@ int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector);
int drm_panel_detach(struct drm_panel *panel); int drm_panel_detach(struct drm_panel *panel);
#ifdef CONFIG_OF #ifdef CONFIG_OF
struct drm_panel *of_drm_find_panel(struct device_node *np); struct drm_panel *of_drm_find_panel(const struct device_node *np);
#else #else
static inline struct drm_panel *of_drm_find_panel(struct device_node *np) static inline struct drm_panel *of_drm_find_panel(const struct device_node *np)
{ {
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment