Skip to content

Commit

Permalink
drm/panel: Constify device node argument to of_drm_find_panel()
Browse files Browse the repository at this point in the history
The argument is never modified by the function, make it const.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Laurent Pinchart authored and Thierry Reding committed Jan 4, 2017
1 parent 0c744ea commit 327bc44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ EXPORT_SYMBOL(drm_panel_detach);
* 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.
*/
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;

Expand Down
4 changes: 2 additions & 2 deletions include/drm/drm_panel.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector);
int drm_panel_detach(struct drm_panel *panel);

#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
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;
}
Expand Down

0 comments on commit 327bc44

Please sign in to comment.