[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <875yht6mmk.fsf@intel.com>
Date: Mon, 12 Sep 2022 11:08:19 +0300
From: Jani Nikula <jani.nikula@...ux.intel.com>
To: Hamza Mahfooz <someguy@...ective-light.com>,
linux-kernel@...r.kernel.org
Cc: Hamza Mahfooz <someguy@...ective-light.com>,
Jernej Skrabec <jernej.skrabec@...il.com>,
Jonas Karlman <jonas@...boo.se>,
David Airlie <airlied@...ux.ie>,
Allen Chen <allen.chen@....com.tw>,
dri-devel@...ts.freedesktop.org,
Neil Armstrong <narmstrong@...libre.com>,
Robert Foss <robert.foss@...aro.org>,
Hermes Wu <hermes.wu@....com.tw>,
Laurent Pinchart <Laurent.pinchart@...asonboard.com>,
Andrzej Hajda <andrzej.hajda@...el.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
Subject: Re: [PATCH] drm/bridge: it6505: use drm_debug_enabled() in
it6505_debug_print()
On Sat, 10 Sep 2022, Hamza Mahfooz <someguy@...ective-light.com> wrote:
> 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@...ective-light.com>
Reviewed-by: Jani Nikula <jani.nikula@...el.com>
> ---
> drivers/gpu/drm/bridge/ite-it6505.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c
> index 4b673c4792d7..875f87c576cb 100644
> --- a/drivers/gpu/drm/bridge/ite-it6505.c
> +++ b/drivers/gpu/drm/bridge/ite-it6505.c
> @@ -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);
--
Jani Nikula, Intel Open Source Graphics Center
Powered by blists - more mailing lists