drm/sun4i: Add backend pointer to sun4i_layer
authorChen-Yu Tsai <wens@csie.org>
Thu, 23 Feb 2017 08:05:42 +0000 (16:05 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:18:24 +0000 (22:18 +0100)
commitace6c095ba3b113b5b41e30c1e6be1ca024ccef8
tree56c7a1b7007a587c20ffe97868c9c84c4e5c653e
parentb9c8506cb88b974522133d7eccc3d924ed29cf23
drm/sun4i: Add backend pointer to sun4i_layer

sun4i_layer only controls the backend hardware block of the display
pipeline. Instead of getting a pointer to the underlying backend
through the drm_device structure, leave one in itself.

Also drop the drm_device pointer, since it is no longer needed.

The next step forward would be to pass the pointer in through
sun4i_layers_init as a parameter. This would make it easier to support
multiple display pipelines layer on.

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
drivers/gpu/drm/sun4i/sun4i_layer.h