From patchwork Thu Mar 2 11:01:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 13157092 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 88183C6FA8E for ; Thu, 2 Mar 2023 11:03:09 +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=sxRpnd41vpRjDRAE03SAMw+fdB3Q63ZhRoWEPoKRmQ4=; b=B4wPzXDr6joFp+ DrCvuPDAkVQMjUh9QZD0dS55zMO3ERfkNIKURCXzwCWkhhvc2dc681sks3qQVzIxSErig8u1pauSG KFbZYxbOLCmerVFIP0Zyey/iZF84YlhSccAjRK6pM6ekaOjJuN918QlktblCHJLTZOuipipe7k0Gf DKxYdmIKUgOxhkHpQfwOtbb4aQz7NBLtFuqgd0lAxcVfK+4cVXvaBVKkzk77/E51WrgaKXECARmRi K3zc+k6p/xTJXD4JiOt7CzSkrSr96jISI2FBltsIbfZ2x7kd8q1YGlecXoRD93rCXK0FFEwaEJce3 FgFzSkiBXkbnzHe5KR1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pXghQ-001nI8-2i; Thu, 02 Mar 2023 11:02:12 +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 1pXggw-001n99-OE for linux-arm-kernel@lists.infradead.org; Thu, 02 Mar 2023 11:01:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1677754902; x=1709290902; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mY3cAYnyOKmX1eK5KErN3GRqlF6KJtvyLr/5G2kFtdA=; b=R0nZskNhRk1B5LtP76xUL5xXgHH+xGkMzqHkNCZXRi/D00uFMj3Y5e/U Wjg8BXIDCqKEU4lmTSZ+Wz5ydv/mECqac78TVt8i6hEdSBO8fg5A1jh+q uN2D7DacHzpby9Dszihori/P+87C7qZQZMvOkgxIZZEXucEqNyUlDleZ9 6N8VLgsc5LYADEJS8jT5gGuTr+uOjRuD0aNzv6YyOPvhYIQDrXf888pn+ JT6GhaMNYHMQwmFBqxb75GSCdUKu6YSSJecfzdgQ44TUnvSH12j7CW+qj Z5RYCEmP+4UUm9HZpnZO1P+r1fwi7ftlVlAE3I6c+Ff+OdNTpLdYDMO7z A==; X-IronPort-AV: E=Sophos;i="5.98,227,1673938800"; d="scan'208";a="202949584" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Mar 2023 04:01:41 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 2 Mar 2023 04:01:40 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 2 Mar 2023 04:01:38 -0700 From: Claudiu Beznea To: , , , CC: , , , Claudiu Beznea Subject: [PATCH 4/4] pinctrl: at91-pio4: use proper format specifier for unsigned int Date: Thu, 2 Mar 2023 13:01:16 +0200 Message-ID: <20230302110116.342486-5-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230302110116.342486-1-claudiu.beznea@microchip.com> References: <20230302110116.342486-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-20230302_030142_829384_E41E3B61 X-CRM114-Status: GOOD ( 10.53 ) 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 %u instead of %d as line is unsigned int. Signed-off-by: Claudiu Beznea --- drivers/pinctrl/pinctrl-at91-pio4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 783968182bc7..d6426367594e 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -1144,7 +1144,7 @@ static int atmel_pinctrl_probe(struct platform_device *pdev) pin_desc[i].number = i; /* Pin naming convention: P(bank_name)(bank_pin_number). */ - pin_desc[i].name = kasprintf(GFP_KERNEL, "P%c%d", + pin_desc[i].name = kasprintf(GFP_KERNEL, "P%c%u", bank + 'A', line); group->name = group_names[i] = pin_desc[i].name;