drm/sun4i: backend: Clarify sun4i_backend_layer_enable debug message

sun4i_backend_layer_enable can be called to enable or disable a layer.
However the debug message always says "Enable", which is confusing.

This patch makes the debug message vary according to the enable state.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
Chen-Yu Tsai 2017-04-25 23:25:05 +08:00 committed by Maxime Ripard
parent 86cf6788a6
commit cf80aeef95
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ void sun4i_backend_layer_enable(struct sun4i_backend *backend,
{ {
u32 val; u32 val;
DRM_DEBUG_DRIVER("Enabling layer %d\n", layer); DRM_DEBUG_DRIVER("%sabling layer %d\n", enable ? "En" : "Dis",
layer);
if (enable) if (enable)
val = SUN4I_BACKEND_MODCTL_LAY_EN(layer); val = SUN4I_BACKEND_MODCTL_LAY_EN(layer);