drm/sun4i: tcon: Copy ID from associated backend
authorChen-Yu Tsai <wens@csie.org>
Fri, 21 Apr 2017 08:38:55 +0000 (16:38 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 14 May 2017 06:31:57 +0000 (08:31 +0200)
commitd281c862de30381c144145a75ec1f0d5efc307ae
tree55367f24dd97b3c7ac47dfc6b4e9a354eb723c91
parentb317fa3ba11a10eee45c3e64d6396015ff87e8dc
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>
drivers/gpu/drm/sun4i/sun4i_tcon.c
drivers/gpu/drm/sun4i/sun4i_tcon.h