Skip to content

Commit

Permalink
drm/sun4i: backend: Clarify sun4i_backend_layer_enable debug message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chen-Yu Tsai authored and Maxime Ripard committed May 14, 2017
1 parent 86cf678 commit cf80aee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/sun4i/sun4i_backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ void sun4i_backend_layer_enable(struct sun4i_backend *backend,
{
u32 val;

DRM_DEBUG_DRIVER("Enabling layer %d\n", layer);
DRM_DEBUG_DRIVER("%sabling layer %d\n", enable ? "En" : "Dis",
layer);

if (enable)
val = SUN4I_BACKEND_MODCTL_LAY_EN(layer);
Expand Down

0 comments on commit cf80aee

Please sign in to comment.