drm: rcar-du: lvds: Fix bridge_to_rcar_lvds
authorFabrizio Castro <fabrizio.castro@bp.renesas.com>
Fri, 2 Aug 2019 07:34:05 +0000 (08:34 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 16 Aug 2019 12:50:27 +0000 (15:50 +0300)
Using name "bridge" for macro bridge_to_rcar_lvds argument doesn't
work when the pointer name used by the caller is not "bridge".
Rename the argument to "b" to allow for any pointer name.

While at it, fix the connector_to_rcar_lvds macro similarly.

Fixes: c6a27fa41fab ("drm: rcar-du: Convert LVDS encoder code to bridge driver")
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
[Fix connector_to_rcar_lvds]
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_lvds.c

index 1c62578590f462fbc4ab8fb1e102c6bfef57b8f5..52c5f1ab8277ebb31821433577aafaf5c1fd2447 100644 (file)
@@ -71,11 +71,11 @@ struct rcar_lvds {
        bool dual_link;
 };
 
-#define bridge_to_rcar_lvds(bridge) \
-       container_of(bridge, struct rcar_lvds, bridge)
+#define bridge_to_rcar_lvds(b) \
+       container_of(b, struct rcar_lvds, bridge)
 
-#define connector_to_rcar_lvds(connector) \
-       container_of(connector, struct rcar_lvds, connector)
+#define connector_to_rcar_lvds(c) \
+       container_of(c, struct rcar_lvds, connector)
 
 static void rcar_lvds_write(struct rcar_lvds *lvds, u32 reg, u32 data)
 {