]> git.baikalelectronics.ru Git - kernel.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)
commit73859f41b6cd946b7bf406a52a6c2229df7306cb
tree92e839ebd98c9701b77bd31324f98a0db1b78de3
parent1523fb89e174fbc9ce1ccea6bb61fd241f9c36c8
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