]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/sun4i: Add end of list element for sun4i_layers_init's returned list
authorChen-Yu Tsai <wens@csie.org>
Thu, 23 Feb 2017 08:05:35 +0000 (16:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:16 +0000 (22:15 +0100)
commit2b2c22bf1c7017d8b4ac088c33b58fae4786d569
tree92e839ebd98c9701b77bd31324f98a0db1b78de3
parent7544860733d158e3edbf309f27e79e258c8f66bd
drm/sun4i: Add end of list element for sun4i_layers_init's returned list

The number of defined planes in sun4i_layer is unknown to other parts
of the sun4i drm driver. Since the return value of sun4i_layers_init
is a list of layers, make it return 1 more empty layer as an end of
list guard value.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_layer.c