Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Laurent Pinchart and committed by
Thierry Reding
327bc443 0c744ea4

+3 -3
+1 -1
drivers/gpu/drm/drm_panel.c
··· 137 137 * Return: A pointer to the panel registered for the specified device tree 138 138 * node or NULL if no panel matching the device tree node can be found. 139 139 */ 140 - struct drm_panel *of_drm_find_panel(struct device_node *np) 140 + struct drm_panel *of_drm_find_panel(const struct device_node *np) 141 141 { 142 142 struct drm_panel *panel; 143 143
+2 -2
include/drm/drm_panel.h
··· 193 193 int drm_panel_detach(struct drm_panel *panel); 194 194 195 195 #ifdef CONFIG_OF 196 - struct drm_panel *of_drm_find_panel(struct device_node *np); 196 + struct drm_panel *of_drm_find_panel(const struct device_node *np); 197 197 #else 198 - static inline struct drm_panel *of_drm_find_panel(struct device_node *np) 198 + static inline struct drm_panel *of_drm_find_panel(const struct device_node *np) 199 199 { 200 200 return NULL; 201 201 }