From patchwork Wed Aug 31 13:56:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12960740 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 98102ECAAD1 for ; Wed, 31 Aug 2022 13:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=edBXshc9qVUAtjivvcVefUVD08Weyodsp0sS54Ite30=; b=fwZdmxO7FC6E1y Wz/vyMsh+Zr0DNnDP9a8uybYHc4vwGp8ddS2srmqhJLBI2jnNMjmW1PlahguuMTNfVG233Nn74cOk WSs7yOS7VpSyN/G267kMJ3PbAkD3o81KYKdPyi20b/nGcBjBBKD/ZqTUVdzCa6elbfAqWVJ5gGdA1 BASDZAqo19dDqFKl6LbNEw2szc07YktWoK+Qc6Ilr3WAZ8EFG7Bh9KQToXOathfxVduwR3zG0RO87 r7Hlzd9Mwrth9LcU1FBtLSax69LqLrJrsbX613+cP1kpcHsoPD3ce9d9wvP+Mt2TkSkY+C89Q4Lok Q/OpXZ+8RpnQT4o+Qyuw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTOBA-006UJN-R5; Wed, 31 Aug 2022 13:54:53 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTOB7-006UIO-LB for linux-arm-kernel@lists.infradead.org; Wed, 31 Aug 2022 13:54:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661954089; x=1693490089; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EPcDBYeJU+l5J9XRw8iQR5txXkoz1uF+BFazkk+GgL4=; b=otYgtK00Dc8lFYnlD9MisNflPFu+wSVoDUhTh/xbifuTXDIgyrXM8uft 62Ps1WbIpgYS5tHm/Mvp3hz4Aa4ybEj+rg7tSLz89QtiL9HmkFAnCISa1 MCxYedMeTZHfh0a6YlxLplgdrcwa3oq0rbl7efolC7J3bORgMfUwG2dyg bSrPwV8L+EDPRUFC9ja5JG37yhPN6X5n0usEFqi9Q2jUepA4E87jUkVEk dCF5yXWR7tR6Mp/0KncNiRcwxZPFGnQKKFu7PNYo9wi7rsK6g+pUyDDn1 41HhsVi2J6oxCEDLtf2bNN34L4yZgxEaqZMBoUW4ugWi35KuCinWY/7of Q==; X-IronPort-AV: E=Sophos;i="5.93,278,1654585200"; d="scan'208";a="178614949" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 Aug 2022 06:54:48 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 31 Aug 2022 06:54:29 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 31 Aug 2022 06:54:27 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH 3/3] pinctrl: at91: use dev_dbg() instead of printk() Date: Wed, 31 Aug 2022 16:56:36 +0300 Message-ID: <20220831135636.3176406-4-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220831135636.3176406-1-claudiu.beznea@microchip.com> References: <20220831135636.3176406-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220831_065449_716292_DCD72526 X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use dev_dbg() instead of printk(KERN_DEBUG) to avoid the following checkpatch.pl warning: "Prefer [subsystem eg: netdev]_dbg([subsystem]dev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ...". Signed-off-by: Claudiu Beznea --- drivers/pinctrl/pinctrl-at91.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 631a6289c2b6..81dbffab621f 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -1659,8 +1659,8 @@ static int at91_gpio_suspend(struct device *dev) if (!at91_chip->wakeups) clk_disable_unprepare(at91_chip->clock); else - printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", - 'A' + at91_chip->id, at91_chip->wakeups); + dev_dbg(dev, "GPIO-%c may wake for %08x\n", + 'A' + at91_chip->id, at91_chip->wakeups); return 0; }