Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp97489pxb; Tue, 21 Sep 2021 19:58:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyewcd+9922Sn+bH1ALhvzQdmtWb7DdZPLihKIDAGBambmZeW98+j5cLHOX9E/cuiuCdi6e X-Received: by 2002:a05:6e02:164b:: with SMTP id v11mr14108561ilu.224.1632279531652; Tue, 21 Sep 2021 19:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632279531; cv=none; d=google.com; s=arc-20160816; b=Zag81flaf6ZUk04Heuar4UGnDuq0MxE/COz6IgCEiRmo3dcEIpbuigK+c0rHQ1TOVo Lf5+xLVCO+hwDzvMdg5GO6Pbg1JwJKEAnLTxnWbWeklOEJ6fFbdgDdJTwL7H+I2zYIWF IALcKjXWwAuoIsgYycRfhpcAa4TqbpvMTuRtKaU3YJGKc6uY0wflkwd0lOGs0B1x8tZo soWSUgSNIOXuJU/RzGskM98Gw105RYBcAy223EuG8tOpeOJfd49jlh+wNPYBYCOthLQt c+wsGiOlOJkn2B5tsQ2IFRQ+o+8DA+z7E1Tynmnb1qVULj9TlUUfYkv1OZKpELt5vI1k N9EQ== ARC-Message-Signature: i=1; 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:message-id:date:subject:cc:to:from; bh=TosmQlxXmw4aEpYz7ckG7n3QKGHxglraKa8BVHJQzUI=; b=winmeA9qXJZ5f2VVVi4cT6v1xAxhHsxWK2xpG2lA6uh6201vC6kdgDSWsTnTIcVSC7 maLdlbZ3hBk+AhnOfEAN9SbuAHsJOq9ESnt1A8egqy6suarlLaPDudimrXHYykB6YBU8 MJPUpEz3OZBSJSetFH7MfCITdA1x2lRebz7zh13RCsKemQz/i3CwkTtwPNZpcmWWPKYl ac2MzDJaCYUw7fiZbTY5wqkI2e3uFvugitMQcDUI5sWLrLEl2eiICkv/VlFpdKgfLDnH PcXU2urFbq5YHr0AL0RTVt2+2vVuZIgSybRRbRMGS++t7p0bz9DJsnVjrd3vTzr3Gw2e tRfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i21si1128408ioj.27.2021.09.21.19.58.40; Tue, 21 Sep 2021 19:58:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbhIVC6W (ORCPT + 99 others); Tue, 21 Sep 2021 22:58:22 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:44634 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230293AbhIVC6T (ORCPT ); Tue, 21 Sep 2021 22:58:19 -0400 X-UUID: fc03ce8e44ce447aac1f18694fe48f8a-20210922 X-UUID: fc03ce8e44ce447aac1f18694fe48f8a-20210922 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1170145746; Wed, 22 Sep 2021 10:56:46 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 22 Sep 2021 10:56:44 +0800 Received: from localhost.localdomain (10.17.3.154) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 22 Sep 2021 10:56:43 +0800 From: Zhiyong Tao To: , , , , CC: , , , , , , , , , , , , Subject: [PATCH v13 3/5] pinctrl: mediatek: fix coding style Date: Wed, 22 Sep 2021 10:56:38 +0800 Message-ID: <20210922025640.11600-4-zhiyong.tao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210922025640.11600-1-zhiyong.tao@mediatek.com> References: <20210922025640.11600-1-zhiyong.tao@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix Camel spelling coding style to avoid checkpatch warning in a following patch. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/pinctrl-paris.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/mediatek/pinctrl-paris.c b/drivers/pinctrl/mediatek/pinctrl-paris.c index 85db2e4377f0..38aec0177d15 100644 --- a/drivers/pinctrl/mediatek/pinctrl-paris.c +++ b/drivers/pinctrl/mediatek/pinctrl-paris.c @@ -577,7 +577,7 @@ static int mtk_hw_get_value_wrap(struct mtk_pinctrl *hw, unsigned int gpio, int mtk_hw_get_value_wrap(hw, gpio, PINCTRL_PIN_REG_DRV) ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, - unsigned int gpio, char *buf, unsigned int bufLen) + unsigned int gpio, char *buf, unsigned int buf_len) { int pinmux, pullup, pullen, len = 0, r1 = -1, r0 = -1; const struct mtk_pin_desc *desc; @@ -610,7 +610,7 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, } else if (pullen != MTK_DISABLE && pullen != MTK_ENABLE) { pullen = 0; } - len += scnprintf(buf + len, bufLen - len, + len += scnprintf(buf + len, buf_len - len, "%03d: %1d%1d%1d%1d%02d%1d%1d%1d%1d", gpio, pinmux, @@ -624,10 +624,10 @@ ssize_t mtk_pctrl_show_one_pin(struct mtk_pinctrl *hw, pullup); if (r1 != -1) { - len += scnprintf(buf + len, bufLen - len, " (%1d %1d)\n", + len += scnprintf(buf + len, buf_len - len, " (%1d %1d)\n", r1, r0); } else { - len += scnprintf(buf + len, bufLen - len, "\n"); + len += scnprintf(buf + len, buf_len - len, "\n"); } return len; -- 2.25.1