drm/bridge: it6505: use drm_debug_enabled() in it6505_debug_print()
Subsystems (3)
PATCH 1/1 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.
--- drivers/gpu/drm/bridge/ite-it6505.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/ite-it6505.c +1 -1
@@ -554,7 +554,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);
Signature · 1 line
2.37.3
Quoted 6 lines · Hamza Mahfooz
As made mention of in commit
9f0ac028410f("drm/print: renamedrm_debugto__drm_debugto discourage use"), we shouldn't explicitly refer to__drm_debugin this context. So, usedrm_debug_enabled()instead.Fixes b5c84a9edcd4 ("drm/bridge: add it6505 driver")Signed-off-by Hamza Mahfooz <[email protected]>
Quoted 17 lines
--- drivers/gpu/drm/bridge/ite-it6505.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/bridge/ite-it6505.c +1
-1@@ -554,7 +554,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);
Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
Il 11/09/22 00:48, Hamza Mahfooz ha scritto:
Quoted 6 lines
As made mention of in commit
9f0ac028410f("drm/print: renamedrm_debugto__drm_debugto discourage use"), we shouldn't explicitly refer to__drm_debugin this context. So, usedrm_debug_enabled()instead.Fixes b5c84a9edcd4 ("drm/bridge: add it6505 driver")Signed-off-by Hamza Mahfooz <[email protected]>
Robert Foss
AppliedApplied to drm-misc-next.