drm: rcar-du: Constify node argument to rcar_du_lvds_connector_init()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 3 Oct 2016 13:56:48 +0000 (16:56 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 14 Nov 2016 01:35:12 +0000 (03:35 +0200)
The node passed as a pointer to the rcar_du_lvds_connector_init()
function is never modified, make it const.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c
drivers/gpu/drm/rcar-du/rcar_du_lvdscon.h

index 6afd0af312baa3d7cf59576e6fd8f4c4f4f041f4..64e9f0b86e58ac3200df6258a9414bc92336fda5 100644 (file)
@@ -79,7 +79,7 @@ static const struct drm_connector_funcs connector_funcs = {
 
 int rcar_du_lvds_connector_init(struct rcar_du_device *rcdu,
                                struct rcar_du_encoder *renc,
-                               /* TODO const */ struct device_node *np)
+                               const struct device_node *np)
 {
        struct drm_encoder *encoder = rcar_encoder_to_drm_encoder(renc);
        struct rcar_du_lvds_connector *lvdscon;
index d4881ee0be7e8aa4df09f5469717592ec0e8c627..639071dd235c468554d4a5c6500713346cf66976 100644 (file)
@@ -19,6 +19,6 @@ struct rcar_du_encoder;
 
 int rcar_du_lvds_connector_init(struct rcar_du_device *rcdu,
                                struct rcar_du_encoder *renc,
-                               struct device_node *np);
+                               const struct device_node *np);
 
 #endif /* __RCAR_DU_LVDSCON_H__ */