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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D031C7EE2E for ; Sun, 26 Feb 2023 07:23:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbjBZHW7 (ORCPT ); Sun, 26 Feb 2023 02:22:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjBZHWu (ORCPT ); Sun, 26 Feb 2023 02:22:50 -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 DAFD712F13 for ; Sat, 25 Feb 2023 23:22:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677396131; cv=none; d=zohomail.in; s=zohoarc; b=UyZGAbUGpmuA9MFPY08QUqshTZfyfgndRi59TNpzENqUwUcA0irPsr06hkCO+t9KUs3iwYOEBNzKsBiBAKWtT9pQgoi8fz4NJ88L8Epo1kfFxWtUhiqSxnTCFWfxa/6IndSHQFVlgMJRLLVA8yRHDjZKrMxoqUcTXkeY6wVQvOo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1677396131; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Imhm3KADBFUzpqoR6YK0c7WlVUrrNnl5QByQ64s0W3k=; b=I2K30Obz8Gv8MdDKAskiMo4cZTcSwd01gTRlYuVnr9hRxYIeVO6tJXgKm4+H9b8Cl18j6cS/PqSPXya4flP8Kc3ZjPF3R3/RUcPAERqLG8IBfZ9tiUYrkC51MyosQhgEi9tZSIHi+sEJqCZEG5NjgTqjuB8qb8wggiIkt73oJ+U= 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=1677396131; 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=Imhm3KADBFUzpqoR6YK0c7WlVUrrNnl5QByQ64s0W3k=; b=Vn/O6em6/LzhuR55MbOAKdyAEiYYYg/cQ8z9cntCOo2TDZ1tUaSMACKn2+mhcplv RNbIzc9ZTW4KGEVWfwfHCV9QNY+6NRm8QwEOss1rx1NxX/xoKWOedJXJjdn5espie6v mbEZqdB0VhPgejiF/xSzi5FFAu9RNyp35S68sdLE= Received: from kampyooter.. (122.170.64.102 [122.170.64.102]) by mx.zoho.in with SMTPS id 1677396129966293.123440320678; Sun, 26 Feb 2023 12:52:09 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jim Cromie , Sam Ravnborg Cc: linux-kernel , dri-devel Message-ID: Subject: [PATCH v7 6/7] drm: Remove usage of deprecated DRM_DEBUG_DRIVER Date: Sun, 26 Feb 2023 12:51:53 +0530 X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 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 1a7d4064d120..764f965a6660 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -624,7 +624,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.1