diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-11-19 06:28:05 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-01-04 10:30:37 +0300 |
commit | 327bc443416d5aeb37e27704b2d91d2f86b8c621 (patch) | |
tree | a6fb7dbc7b70fa756aee6b22de6a87f464c48346 /include/drm/drm_panel.h | |
parent | 0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (diff) | |
download | linux-327bc443416d5aeb37e27704b2d91d2f86b8c621.tar.xz |
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: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/drm/drm_panel.h')
-rw-r--r-- | include/drm/drm_panel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 220d1e2b3db1..4b76cf2d5a7b 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -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; } |