Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2235868rwl; Mon, 26 Dec 2022 11:03:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXvGTisr4ZFKQFX9bocxlDYTo88m3AnALsQkrn7l6lvHOv7zH6qX3aL0np8iNFpfkJwTOn59 X-Received: by 2002:a05:6a21:9990:b0:a6:f26b:558 with SMTP id ve16-20020a056a21999000b000a6f26b0558mr31579798pzb.16.1672081404236; Mon, 26 Dec 2022 11:03:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672081404; cv=pass; d=google.com; s=arc-20160816; b=JM64cY23+1p6Ao/Lz3fbbGVGafD9Bz+fN55v9K3SgE72/Tjjqh91kBv5fWCPK/0JEc 36BgiacI3LZmnq5pk+JlZD8IS84QQ7M0iY7EoyCMPOjMxo8DPnj3nf0eEH3JR1Z2OX4k xspor0L2ZKdWpeFLAijLuOkRXG8b3AugjpCTi6IZSlAvLWxuR6wcNpN+9Z0/04dq3H+I h+Fg+5OUp605V6AYSTX+zShngFZklzlMoleZTA/Kmkzcc00wE8JAw+IfnNyM/IKanHhK fjv1cVoMudS+BzHgTb2o1ZXEkosU6SRKJcxOHAzkUIj5oahrfWOyF30xU/XgmFL4UEhS kI3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=cp4+vlFQEShwGUtdA+SHzc1+QYbJ6ReZCu11OOTgYdo=; b=NQFZjvioEDAD7CZXFDtZ9aYiD9gAxicVQe8nMOJBU6T4ZA54BPqviK1hJUrnqCdCK2 uErf/YrFmeRxH+ROWfe+NQabnVfA3EuQ35ApE/iTuD/Qx/s29o5TpMrY56plPQVCbWLF i2Sc1ua2xXQYyMzXnKMXCYkB0vHI6KegxZpo14tJWMkKpuba6nKGxsx556eFqNJRECVy EewnTZaTuOJO7ioxgZqCHP4/pIGjFDT9EF+woirAwxx4LaPO30NvpNMWdHq9tqB3p7Iy cW/5j/nIbcO6RFDTphqJxouGvGIUFIO4gQLUJ7DR/eQwmVi/ZNxeNuX/2zyBD+VGkd8a 3Vkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=T41xWrY4; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k130-20020a633d88000000b0049b4e0bf3ffsi89526pga.446.2022.12.26.11.03.15; Mon, 26 Dec 2022 11:03:24 -0800 (PST) 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; dkim=pass header.i=@siddh.me header.s=zmail header.b=T41xWrY4; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232302AbiLZS2P (ORCPT + 66 others); Mon, 26 Dec 2022 13:28:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbiLZS2C (ORCPT ); Mon, 26 Dec 2022 13:28:02 -0500 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C458261D for ; Mon, 26 Dec 2022 10:28:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672079249; cv=none; d=zohomail.in; s=zohoarc; b=HYLuNx6AcbexsRfDXDDtVHGjHm2raGEsDXw/5elwCceM8/b0SR4FxI8w8GllrwQ44qCMbAKsnUFavcSF1FmwybK8A9UkPIATYibvFt9MH4JEbtiCsgohTSDj9cnufkf/mph4rnft0tfwPseJeBlErAt52SkT6IkwmQdnqt6Zs34= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1672079249; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cp4+vlFQEShwGUtdA+SHzc1+QYbJ6ReZCu11OOTgYdo=; b=PFa4u2O/4pDWG7TJFSvlpMiZPwmMGhaUyEEUexceF5m0HQqdVK3L9omS3wGzdYpBXqih5bo1kbHCvSz1drybd8uzsLR5W6YwNBGI6NRvXHjfjddyfJcbmk8x7wztIgdy19RKQNApmxbdxS/cpX5yP+QyMUG60yaazJYLzA+icPo= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672079249; s=zmail; d=siddh.me; i=code@siddh.me; h=From:From:To:To:Cc:Cc:Message-ID:Subject:Subject:Date:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Reply-To; bh=cp4+vlFQEShwGUtdA+SHzc1+QYbJ6ReZCu11OOTgYdo=; b=T41xWrY4SSQ3itnlXUqo9AqdVXGdxOj7D8qnL/2pGk2ymm3RO9OJgvR3lLVuv9PD mEcof2pdgTQlzXILsUFcLGkPd0iDquu0qWSdiXUebgAquNZCiNBoXu/ph1UmLnY92XE rf6Yj1LkgXfnyTDtKORVjx51K9sBwpSuV/4D0IZU= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 16720792484238.69347404177995; Mon, 26 Dec 2022 23:57:28 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser , Jim Cromie Cc: dri-devel , linux-kernel Message-ID: Subject: [PATCH v3 06/10] drm: Remove usage of deprecated DRM_DEBUG_DRIVER Date: Mon, 26 Dec 2022 23:57:18 +0530 X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 drm_print.h says DRM_DEBUG_DRIVER is deprecated. Thus, use newer drm_dbg_driver(). Also fix the deprecation comment in drm_print.h which mentions drm_dbg() instead of drm_dbg_driver(). Signed-off-by: Siddh Raman Pant --- drivers/gpu/drm/drm_mipi_dbi.c | 10 +++++----- include/drm/drm_print.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b/drivers/gpu/drm/drm_mipi_dbi.= c index 58ff9503a403..ab5dd5933a1a 100644 --- a/drivers/gpu/drm/drm_mipi_dbi.c +++ b/drivers/gpu/drm/drm_mipi_dbi.c @@ -70,11 +70,11 @@ #define MIPI_DBI_DEBUG_COMMAND(cmd, data, len) \ ({ \ =09if (!len) \ -=09=09DRM_DEBUG_DRIVER("cmd=3D%02x\n", cmd); \ +=09=09drm_dbg_driver(NULL, "cmd=3D%02x\n", cmd); \ =09else if (len <=3D 32) \ -=09=09DRM_DEBUG_DRIVER("cmd=3D%02x, par=3D%*ph\n", cmd, (int)len, data);\ +=09=09drm_dbg_driver(NULL, "cmd=3D%02x, par=3D%*ph\n", cmd, (int)len, data= );\ =09else \ -=09=09DRM_DEBUG_DRIVER("cmd=3D%02x, len=3D%zu\n", cmd, len); \ +=09=09drm_dbg_driver(NULL, "cmd=3D%02x, len=3D%zu\n", cmd, len); \ }) =20 static const u8 mipi_dbi_dcs_read_commands[] =3D { @@ -708,7 +708,7 @@ bool mipi_dbi_display_is_on(struct mipi_dbi *dbi) =09 DCS_POWER_MODE_DISPLAY_NORMAL_MODE | DCS_POWER_MODE_SLEEP_MODE)) =09=09return false; =20 -=09DRM_DEBUG_DRIVER("Display is ON\n"); +=09drm_dbg_driver(NULL, "Display is ON\n"); =20 =09return true; } @@ -1256,7 +1256,7 @@ int mipi_dbi_spi_init(struct spi_device *spi, struct = mipi_dbi *dbi, =20 =09mutex_init(&dbi->cmdlock); =20 -=09DRM_DEBUG_DRIVER("SPI speed: %uMHz\n", spi->max_speed_hz / 1000000); +=09drm_dbg_driver(NULL, "SPI speed: %uMHz\n", spi->max_speed_hz / 1000000)= ; =20 =09return 0; } diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index ae7f5e29adfd..bb6c80252104 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -603,7 +603,7 @@ void __drm_err(const char *format, ...); #define DRM_DEBUG(fmt, ...)=09=09=09=09=09=09\ =09__drm_dbg(DRM_UT_CORE, fmt, ##__VA_ARGS__) =20 -/* NOTE: this is deprecated in favor of drm_dbg(NULL, ...). */ +/* NOTE: this is deprecated in favor of drm_dbg_driver(NULL, ...). */ #define DRM_DEBUG_DRIVER(fmt, ...)=09=09=09=09=09\ =09__drm_dbg(DRM_UT_DRIVER, fmt, ##__VA_ARGS__) =20 --=20 2.35.1