Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp296286rwj; Thu, 22 Dec 2022 07:53:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXtlgk9rPeeJ/qrfJtGTW97PzjpxdflfhTqvrqoJu+nIwCuEGBZDFFKe9tdFcDMNzQprs2rD X-Received: by 2002:a17:907:6d0c:b0:7c1:652:d109 with SMTP id sa12-20020a1709076d0c00b007c10652d109mr5921758ejc.35.1671724394632; Thu, 22 Dec 2022 07:53:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671724394; cv=pass; d=google.com; s=arc-20160816; b=vspqyoyk3/bkwPb1OPEragDRP7MWo+N1FOrTzI0QWMZh5k3mH7ahNc0ejO8pWny/JG 9iZL8EFDthn25JGms1Dq9n5M+Bpibf/4Qr+nQVG7/+uP5KdHttFvDUZhNvGbNA1AZ+U0 r88i3zBRE6Vhgnw5JUefFBah2yRjfeZSK7SoUGue6wMycVg4HlY+xNWyfO9C6TmO0DDQ G4iKAVdbvLe1T59CWGWXQNShdwGs6vXW9ywNeMzNmrZT6fXsktZ1QVNwG+K+tFq39n1/ INYOU/LYC8gFaV0gK/aufRosbnKLwdIFjD0jukMW3IsKP0/EoOM9byUo9AWKPooYimLs mcIQ== 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=oY3981IrmoUdN5yimQiKjEoeQi+zVtf1CbGlFX5KcoU=; b=PG9v4EGn3S4JXIt4bsDwUKs3RvrWm7XZi+bCwT7fPz62IFwOm747EB9cLVm+OkUtoL dEfQIHnIpuJHhN6cFfNFYFbkSb2ImAmkLoY8kDPvtAySTfc1SUMJH2435GQd9KiZgS9h GwOt2TETY3FpngY+CSV8VuxNZkfgptyI2pFhbo9YA6Eel+4F644DCHwjLwgQlwrlwIuW ilVmdkMgJ0zhQqJ9AAHN43IwNk4YIcWxTkl3vIjb2PFl9vDSFY/VM1vjiFbI+Bblfh0M jeeCMCqJXU5sDUyTmdHg5TjCuxCamNHX6qKpQsHi1qe9CnzBkeCYFFxP+qM1oQ3uAm3n kNEQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=O7aohhhW; 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 g19-20020a1709065d1300b007c0eb33879asi737281ejt.667.2022.12.22.07.52.58; Thu, 22 Dec 2022 07:53:14 -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=O7aohhhW; 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 S235370AbiLVPnd (ORCPT + 67 others); Thu, 22 Dec 2022 10:43:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbiLVPnU (ORCPT ); Thu, 22 Dec 2022 10:43:20 -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 3DC3311A2B for ; Thu, 22 Dec 2022 07:43:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671723650; cv=none; d=zohomail.in; s=zohoarc; b=L0Mso4H09NMTWbLQuKSRtIani7ShsA8ryfjPJ15BYRvVvFW+RBMvaXw4l2W9TqlxC3w7w0osDyfd48eTlML9bxuGgYU6xwvJLZBnRAI5WIsSvdRP6LFyJzdQU+hh4GvrJx3GtCJadDxCTN0m05Z0gghuAdmDP3i9aa4BmLVONfE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1671723650; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=oY3981IrmoUdN5yimQiKjEoeQi+zVtf1CbGlFX5KcoU=; b=K8YooLkXh6yy9WucGwhCLlnsd6N/ZukhILV+btogp2aXlRCseHJWNkt3nRKQRYqnQXaAppK94Y2MYqsMgVzpD+8WKpozFxJcKc3z+ck1SqUE5eECGeJ+2JGplmK+rQzLj4b3dcNZ5GZUGw1mbUmkyAOmJCtq5mWDMabCycWGvbM= 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=1671723650; 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=oY3981IrmoUdN5yimQiKjEoeQi+zVtf1CbGlFX5KcoU=; b=O7aohhhWZcumu7PqKH1DWhrpFwKBjboMKMn4O47hxC0MKC9DR1e9thkqONI/sY26 dIIcDpRL8KukzThb/R1adyUp7N1/XLtSbMWrbCRS3mn6kv7J8kf/myow9HfVFzc5AaM c0VtSkLgD+G9pDVf25Wg8sJHJJhrsuUx2F6v8w00= Received: from kampyooter.. (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1671723649149737.4887777903457; Thu, 22 Dec 2022 21:10:49 +0530 (IST) From: Siddh Raman Pant To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Simon Ser Cc: dri-devel , linux-kernel Message-ID: <5366b23e1e6761a303381fe1cccda2e41549113a.1671723195.git.code@siddh.me> Subject: [PATCH v2 5/9] drm: Remove usage of deprecated DRM_DEBUG_DRIVER Date: Thu, 22 Dec 2022 21:10:39 +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 24af507bb687..6ad399f6ab03 100644 --- a/drivers/gpu/drm/drm_mipi_dbi.c +++ b/drivers/gpu/drm/drm_mipi_dbi.c @@ -69,11 +69,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 { @@ -632,7 +632,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; } @@ -1168,7 +1168,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 6d2d5c522e25..3f81f4edbe1d 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -582,7 +582,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