mirror of https://gitee.com/openkylin/linux.git
drm/i2c/sil164: use drm_debug_enabled() to check for debug categories
Allow better abstraction of the drm_debug global variable in the future. No functional changes. Cc: Francisco Jerez <currojerez@riseup.net> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/f6f65ca7e27e949533e8cd1f43c61ecac73c658e.1569329774.git.jani.nikula@intel.com
This commit is contained in:
parent
6511a945cf
commit
dee97f6ab4
|
@ -44,7 +44,7 @@ struct sil164_priv {
|
|||
((struct sil164_priv *)to_encoder_slave(x)->slave_priv)
|
||||
|
||||
#define sil164_dbg(client, format, ...) do { \
|
||||
if (drm_debug & DRM_UT_KMS) \
|
||||
if (drm_debug_enabled(DRM_UT_KMS)) \
|
||||
dev_printk(KERN_DEBUG, &client->dev, \
|
||||
"%s: " format, __func__, ## __VA_ARGS__); \
|
||||
} while (0)
|
||||
|
|
Loading…
Reference in New Issue