| From 0c56f4ba6b6cfb645ee9ca44bc3b172aa1c307bb Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Sat, 19 Nov 2016 05:28:05 +0200 |
| Subject: [PATCH 255/286] 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> |
| (cherry picked from commit 327bc443416d5aeb37e27704b2d91d2f86b8c621) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/gpu/drm/drm_panel.c | 2 +- |
| include/drm/drm_panel.h | 4 ++-- |
| 2 files changed, 3 insertions(+), 3 deletions(-) |
| |
| --- a/drivers/gpu/drm/drm_panel.c |
| +++ b/drivers/gpu/drm/drm_panel.c |
| @@ -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; |
| |
| --- a/include/drm/drm_panel.h |
| +++ b/include/drm/drm_panel.h |
| @@ -193,9 +193,9 @@ int drm_panel_attach(struct drm_panel *p |
| 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; |
| } |