Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae558110 authored by Maxime Ripard's avatar Maxime Ripard
Browse files

drm/sun4i: Store TCON's device structure pointer



We will need to access TCON's struct device from outside of TCON's driver
bind function. Store it in our private structure.

Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 29b4817d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -446,6 +446,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
	dev_set_drvdata(dev, tcon);
	drv->tcon = tcon;
	tcon->drm = drm;
	tcon->dev = dev;

	if (of_device_is_compatible(dev->of_node, "allwinner,sun5i-a13-tcon"))
		tcon->has_mux = true;
+1 −0
Original line number Diff line number Diff line
@@ -143,6 +143,7 @@
#define SUN4I_TCON_MAX_CHANNELS		2

struct sun4i_tcon {
	struct device			*dev;
	struct drm_device		*drm;
	struct regmap			*regs;