diff options
author | Hamza Mahfooz <someguy@effective-light.com> | 2022-09-11 00:48:16 +0200 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2022-09-12 13:45:07 +0200 |
commit | e3d8d54cd6c5b29f3437f1f00b393267b84d650e (patch) | |
tree | 20c4b411031bc9bdbbebe6eeaeb3f104bf58f5be /drivers/gpu/drm/bridge | |
parent | drm/aperture: Fix some kerneldoc comments (diff) | |
download | linux-e3d8d54cd6c5b29f3437f1f00b393267b84d650e.tar.xz linux-e3d8d54cd6c5b29f3437f1f00b393267b84d650e.zip |
drm/bridge: it6505: use drm_debug_enabled() in it6505_debug_print()
As made mention of in commit 9f0ac028410f ("drm/print: rename drm_debug
to __drm_debug to discourage use"), we shouldn't explicitly refer to
__drm_debug in this context. So, use drm_debug_enabled() instead.
Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver")
Signed-off-by: Hamza Mahfooz <someguy@effective-light.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220910224816.15058-1-someguy@effective-light.com
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r-- | drivers/gpu/drm/bridge/ite-it6505.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c index 2bb957cffd94..2767b70fa2cb 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -563,7 +563,7 @@ static void it6505_debug_print(struct it6505 *it6505, unsigned int reg, struct device *dev = &it6505->client->dev; int val; - if (likely(!(__drm_debug & DRM_UT_DRIVER))) + if (!drm_debug_enabled(DRM_UT_DRIVER)) return; val = it6505_read(it6505, reg); |