Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6918441rwd; Tue, 6 Jun 2023 04:02:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59OCh39K2xdlDAaFFssY3leLqZ7t32z6DH6wmEV1rflh020wtmkVSG45o7lleMw/Wm0oC6 X-Received: by 2002:a05:620a:480a:b0:75b:23a0:d9ad with SMTP id eb10-20020a05620a480a00b0075b23a0d9admr1630624qkb.3.1686049356986; Tue, 06 Jun 2023 04:02:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1686049356; cv=pass; d=google.com; s=arc-20160816; b=qmcNcK41h/ghMNghCTj6oSVMz2+KTZGew9gdE61W8Xgv6I1tWFlsm+CFGAjYui6zRs 2FjI1rQtn1iRySf+YdVinM5k+qkF+f5WUe19BDPa+ohA1VAbsKwdGdlMlPxpyVnpX8OR 5DtLWh1schrE5cTMnXoJgIBBfMPzD4jQvMXYfXWA0/syiYsHZsaBtttzNm2nEkybRg/o nZSlIsXk/blgrAVul11Qt9WR09X4WQtTBbNiu09ez7GHwmRu+9iRTLE4IDB0oM5jGr2U zj6h3F463Z6HRrJ2PxmTZ99PIeLncBa4wA2icY5KSXrAHlMPwA8Lic4zYOiwuBIS79G3 PMtg== 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=F3TWO4r4R4gJSeODpWJTudyPNeSz9jhWuBFxJCunBdc=; b=Q6KD8kvCYV+NO3ycnYHZcwbTAv3sjkAHIeOoF/eD6byEIA1IdMEZt26wK5x6VsvRUW 9KTVJXy4qTU799iauquvE/BRXjGRNUGHgsSgEf0S31G9byWxL931vjUj4WmVsZvaimSZ BOrAQmC0mQOd+pgLrIwBIHhYKpR/NCuFKmyO6K+/OU/6mnjyN0ZLbdpH4bLV0qzLknSJ SsCPH+cy05Vj+V4yWohrnYxCl6iLSSx5ViqKtLhByd9IYYC6yiMVE7uBNg3iziBGYqeK rk+sZnZqLSpclTikibxn2vD2eSKHqbPdZ1eur5z3viQH7Ae+nWtqTi/n2aQBHfiFqLSy V/2w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=d7guBeIY; 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=NONE sp=NONE 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 h18-20020a05620a10b200b0075d005b5477si5753377qkk.694.2023.06.06.04.02.22; Tue, 06 Jun 2023 04:02:36 -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; dkim=pass header.i=@siddh.me header.s=zmail header.b=d7guBeIY; 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=NONE sp=NONE dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237238AbjFFKsl (ORCPT + 99 others); Tue, 6 Jun 2023 06:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234558AbjFFKre (ORCPT ); Tue, 6 Jun 2023 06:47:34 -0400 Received: from sender-of-o51.zoho.in (sender-of-o51.zoho.in [103.117.158.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808CC10F7 for ; Tue, 6 Jun 2023 03:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686048332; cv=none; d=zohomail.in; s=zohoarc; b=N9Q/0CYk5YHdVJ8UZePOBvNU4HMlc7fPhn9H048yiNpAnewnXD0NFa1Uq13auFZf0DcPWH7MH+3ztK/fSu1DOFbwTin5yKOb+Q0/CLExn2hj9YqgcBbwSa4aAhJeqaCOhUqkwhmRidiBydH3IZ2A7gvH7JfJrCds1iL5sbBn9lY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1686048332; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=F3TWO4r4R4gJSeODpWJTudyPNeSz9jhWuBFxJCunBdc=; b=aG8f1tt3El/hlSc9UdW/lmXMAdjcGMa71ltaFgqocgSUwCIMxTszY5/c/+S+62zubYz7VftA0Zp6mfOlMMD6CJnJ69niNBjVAnvQed4sIkSgV5LgH9LhGYEAtbWlNJ0QcVB7m9N2hZyGJ1Ee+cY9S9n9vbodnCZd2AuVpNDjHyc= 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=1686048332; 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=F3TWO4r4R4gJSeODpWJTudyPNeSz9jhWuBFxJCunBdc=; b=d7guBeIYuU9ME+IOcicg8CWduiDqbYb2yeItAncfYnhVKNauYkka2MCJ9pCLA7Vw HF+4D7R7fuft2YJJ4GNGoe11TCjJoeZf8NjPG0kZGdFuxyzQ2JCfJNlkm59+IVtZUpV LOdk5j1jiDE5TzJ5UWgpl1vMlHXZnFfX+DqwqYWs= Received: from kampyooter.. (122.176.141.156 [122.176.141.156]) by mx.zoho.in with SMTPS id 1686048332069499.5663765192579; Tue, 6 Jun 2023 16:15:32 +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 Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay Message-ID: <22d3153244242e08984b16065da19308a513a743.1686047727.git.code@siddh.me> Subject: [PATCH v9 7/8] drm: Remove usage of deprecated DRM_DEBUG_DRIVER Date: Tue, 6 Jun 2023 16:15:21 +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-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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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