From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7C37C7EE23 for ; Wed, 7 Jun 2023 08:45:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2224B10E460; Wed, 7 Jun 2023 08:45:27 +0000 (UTC) Received: from sender-of-o51.zoho.in (sender-of-o51.zoho.in [103.117.158.51]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FC1A10E244 for ; Tue, 6 Jun 2023 18:30:37 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1686076231; cv=none; d=zohomail.in; s=zohoarc; b=YPu7syH8fnjPxyoFHG3nks5QzdH7IpPV8UJ/uIfcJG5NRNfZYpBwHAPGuQ5TggmK9t1nt8jRT750A1MDmhmYQYpxMt/pfys/FLCR48+HEgaDv0XBpqWYXu6/dsci5kmulSnzimbIs6aQdxABF41cVWgXkI/fDRAeauwdavTD324= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1686076231; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=puLofFj3zDMeumW8fOJAwQv71GBOlazoH6vvIBwnKbk=; b=ItJbwtmVAcHbQotbhY+EKrUDZlcc1JQV2CDJTShL9dCPNyh2vCMeKSrjLrBHEEl8duMsSDBCEKnkk9SZ2TYtrXXvZeVYjSRmBPkVY8Senyz+EvI1IKgpg/oGJKyMgIWANwGfksu3zc8ReW/NNFKN5iA6r3LFRlO830xffAY1VL0= 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=1686076231; 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=puLofFj3zDMeumW8fOJAwQv71GBOlazoH6vvIBwnKbk=; b=T5noRceXXCE3g4s2F7Y1gmkbF5lymh8Nq2aCwNhVsqoTdkEPhwKoVpJBplpgb8ey W3mz3MhGZsiEp9XIRlv6r7hdhfGmnl6dt/5PVowSBKecHJ9B8iPMHnd9d+vehtxurf+ DAQn2zPdzwqNvIJy+27xsGfgq0BADlP5U+X1k+6A= Received: from kampyooter.. (122.176.141.156 [122.176.141.156]) by mx.zoho.in with SMTPS id 1686076230051753.9000226833674; Wed, 7 Jun 2023 00:00:30 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Jani Nikula , Laurent Pinchart Message-ID: Subject: [PATCH v10 7/9] drm: Remove usage of deprecated DRM_DEBUG_DRIVER in DRM core Date: Wed, 7 Jun 2023 00:00:08 +0530 X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 X-Mailman-Approved-At: Wed, 07 Jun 2023 08:45:26 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Suraj Upadhyay Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(). Reviewed-by: Laurent Pinchart 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 4b8532cf2ae6..2bac5e8fd550 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -589,7 +589,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.39.2