Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3614713rwn; Sat, 10 Sep 2022 16:15:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR6bB4di5LvBA90dIqmtCzXkLbbdEwbUUO1HRJC1JAWExI9L57EsowHw61K2s+Xe3BIDYe6v X-Received: by 2002:a17:907:7b93:b0:770:1d4f:4de9 with SMTP id ne19-20020a1709077b9300b007701d4f4de9mr14421017ejc.201.1662851737842; Sat, 10 Sep 2022 16:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662851737; cv=none; d=google.com; s=arc-20160816; b=N6guHyy5TOWkqAMM5sEjB/ZzMnqcA/LxHBCU9sAmrhJ7dSJlL6Yeb54NVAWLmiQGmB reoZrGHPprZ864Ev7H4lS+5HyqQ6a3PqsJTgpbgkikNKJc6Xui8GngoF9XczedaibFgp zgtJN1/6GBuKzQFvf/k10nE64B/nO0SqMKUeYGy1jRv100CAuIOxK6mFoNt2VcTnJ4T/ xSshbKhsumOXahpmtP2SvN+dWRFpCaXhrZRSkpv2Ivkmpipqzhw8sqXuxRxYo7+dlw9G Etducf2ZwD6N5e9Pe7j2LWcgL15Jx5U5EzOOULoMlUGXxi4O6aid8ooAn4Z19BjjYBpB 0+/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gErPkl1WSvnc+nla1ry2PBrGfpf3j7mAsLeqjWGsH3I=; b=XXKkfgqM/8NxwSDuXLC6X7mCgYCyHuiwORcsJtSHSVxVmSOlctfo/bRE+cDXFjspFv EWg9jB4y1VxNfFWeJzRrFsuf0vibv1x0RFyowJNpzH4aGUwWDBIAKu0PMUxvKj1QCCdE kyYYtddVioDzhszXISufVmnLVigP0xgKeBeslMVX1TFJVEdQQcbzCWqzDmRL8bvvcHIN j+eDBKRLR94D4LIg+aP2qhi6P6QMHxt2UIGuy+dTAsFIVyxbR18Fo//E8UTwZjUR1YCK Glqz7H1L1trFeeKGpWFWo+YPXfN//uVysK0MbBAb764ZuEvn/haQ6/Xd/IdQZEKO3By/ kcrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds19-20020a170907725300b0073beb963ce6si4125979ejc.345.2022.09.10.16.15.11; Sat, 10 Sep 2022 16:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229793AbiIJWwU (ORCPT + 99 others); Sat, 10 Sep 2022 18:52:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiIJWwT (ORCPT ); Sat, 10 Sep 2022 18:52:19 -0400 X-Greylist: delayed 203 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 10 Sep 2022 15:52:18 PDT Received: from h5.fbrelay.privateemail.com (h5.fbrelay.privateemail.com [162.0.218.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD82B4F186 for ; Sat, 10 Sep 2022 15:52:18 -0700 (PDT) Received: from MTA-10-4.privateemail.com (mta-10-1.privateemail.com [68.65.122.30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by h5.fbrelay.privateemail.com (Postfix) with ESMTPS id 04BEB6141B for ; Sat, 10 Sep 2022 22:48:54 +0000 (UTC) Received: from mta-10.privateemail.com (localhost [127.0.0.1]) by mta-10.privateemail.com (Postfix) with ESMTP id 1819218000A1; Sat, 10 Sep 2022 18:48:52 -0400 (EDT) Received: from hal-station.. (bras-base-toroon4321w-grc-49-76-69-77-8.dsl.bell.ca [76.69.77.8]) by mta-10.privateemail.com (Postfix) with ESMTPA id 756A618000A2; Sat, 10 Sep 2022 18:48:37 -0400 (EDT) From: Hamza Mahfooz To: linux-kernel@vger.kernel.org Cc: Hamza Mahfooz , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , AngeloGioacchino Del Regno , Hermes Wu , Allen Chen , dri-devel@lists.freedesktop.org Subject: [PATCH] drm/bridge: it6505: use drm_debug_enabled() in it6505_debug_print() Date: Sat, 10 Sep 2022 18:48:16 -0400 Message-Id: <20220910224816.15058-1-someguy@effective-light.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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); -- 2.37.3