drm/nouveau: use drm_debug_enabled() to check for debug categories
authorJani Nikula <jani.nikula@intel.com>
Mon, 28 Oct 2019 10:38:16 +0000 (12:38 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 14 Nov 2019 12:08:38 +0000 (14:08 +0200)
commit4f632fb23583b9ba598be879436bd555c7da5f3b
tree949a04088bcece6de3ffc0882341a723b1cefa66
parentbdbf43d739f4d2379419504747b589b421c67e20
drm/nouveau: use drm_debug_enabled() to check for debug categories

Allow better abstraction of the drm_debug global variable in the
future. No functional changes.

v2: move unlikely() to drm_debug_enabled()

Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: nouveau@lists.freedesktop.org
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Sean Paul <sean@poorly.run>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/34a1e7db6eab6467c6607d9a57581d1de75d87da.1572258936.git.jani.nikula@intel.com
drivers/gpu/drm/nouveau/dispnv50/disp.h
drivers/gpu/drm/nouveau/nouveau_drv.h