drm/print: add drm_debug_enabled()
authorJani Nikula <jani.nikula@intel.com>
Tue, 1 Oct 2019 14:06:14 +0000 (17:06 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 2 Oct 2019 13:28:55 +0000 (16:28 +0300)
commitf0a8f533adc202f7dc83961c85187794eaed9cec
tree5600de76c2e33d6f637a69a56f92c834676d9894
parent959b077f26a16c663816f116af8063a170233a07
drm/print: add drm_debug_enabled()

Add helper to check if a drm debug category is enabled. Convert drm core
to use it. No functional changes.

v2: Move unlikely() to drm_debug_enabled() (Eric)

v3: Keep unlikely() when combined with other conditions (Eric)

Cc: Eric Engestrom <eric@engestrom.ch>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191001140614.26909-1-jani.nikula@intel.com
drivers/gpu/drm/drm_atomic_uapi.c
drivers/gpu/drm/drm_dp_mst_topology.c
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_edid_load.c
drivers/gpu/drm/drm_mipi_dbi.c
drivers/gpu/drm/drm_print.c
drivers/gpu/drm/drm_vblank.c
include/drm/drm_print.h