drm/sun4i: tcon: Copy ID from associated backend
The tcons and backends have a one-to-one relationship. Their IDs, or indexes in the documentation, are also the same. Copy the ID from the associated backend and save it in the tcon structure. This will later be used when we add support for the output data path muxes. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:

committed by
Maxime Ripard

vanhempi
b317fa3ba1
commit
d281c862de
@@ -471,6 +471,7 @@ static int sun4i_tcon_bind(struct device *dev, struct device *master,
|
||||
dev_set_drvdata(dev, tcon);
|
||||
tcon->drm = drm;
|
||||
tcon->dev = dev;
|
||||
tcon->id = backend->id;
|
||||
tcon->quirks = of_device_get_match_data(dev);
|
||||
|
||||
tcon->lcd_rst = devm_reset_control_get(dev, "lcd");
|
||||
|
Viittaa uudesa ongelmassa
Block a user