summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/sun4i/sun4i_tcon.h
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-04-21 16:38:55 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2017-05-14 08:31:57 +0200
commitd281c862de30381c144145a75ec1f0d5efc307ae (patch)
tree55367f24dd97b3c7ac47dfc6b4e9a354eb723c91 /drivers/gpu/drm/sun4i/sun4i_tcon.h
parentb317fa3ba11a10eee45c3e64d6396015ff87e8dc (diff)
downloadop-kernel-dev-d281c862de30381c144145a75ec1f0d5efc307ae.zip
op-kernel-dev-d281c862de30381c144145a75ec1f0d5efc307ae.tar.gz
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>
Diffstat (limited to 'drivers/gpu/drm/sun4i/sun4i_tcon.h')
-rw-r--r--drivers/gpu/drm/sun4i/sun4i_tcon.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.h b/drivers/gpu/drm/sun4i/sun4i_tcon.h
index 1bda4d1..d37e1e2 100644
--- a/drivers/gpu/drm/sun4i/sun4i_tcon.h
+++ b/drivers/gpu/drm/sun4i/sun4i_tcon.h
@@ -174,6 +174,8 @@ struct sun4i_tcon {
/* Associated crtc */
struct sun4i_crtc *crtc;
+ int id;
+
/* TCON list management */
struct list_head list;
};
OpenPOWER on IntegriCloud