Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1301933pxb; Fri, 24 Sep 2021 01:08:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8f7Wq+PwMrJ+YPsKqBCfDHANsrIdhggKQ2noeyjQ3KBbm3/V1qZRxK9okyYUqp0GYE4G3 X-Received: by 2002:a17:907:2651:: with SMTP id ar17mr9889465ejc.15.1632470935571; Fri, 24 Sep 2021 01:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632470935; cv=none; d=google.com; s=arc-20160816; b=CZ8MBiOQyQwSLrHxgGJsm9xabZUW6p7TgZ3XnsNfsDuP+fZTFqA0ba2KqXaw0wQfvN oXKZpfBwXT550q736ZAC5+eFHcdlbLhBQaABoQWIYjPWOV2hHD+vHiSqonQSs6rhOOpZ scuwSLx4UOb9m8NTjYX+cbjJ4J9BslGa4XUP68kIc6HbeMq5cKmWctxhJtfWc/B9pTMP B5pi/b2HlZ/PPZ3PakWBSxhgW1rHokLXWg3j9c6t5vI9MqC6BpeNm8Z00HPJ65ZoXtSf xWS4PFLaZ0BFEOaaXnnzAO0tAMuA3cLUDKzusA7KVI8EoQo++IcYV7S2cSajn5J8G49L F3Qw== 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=yw9Ad/uEyceR61XiOpaaLE5wuY1GppsPk2eYFWXimwo=; b=TywB5Tn7FGXg1gTVJv44bI7/TSJ9L+zAaL9HNjBSJypcLc1Fs3t7qrSVUGH+UVwH0B 2XunkJrrBX6hd7SV9wJDFPkElXd2g0bBjxyrBHZcOQa1YAFmVEPykx3gH7vdnSAKjQtb T6TA7KclaNPsTw0mEtF2+n+05gsBRvpWt7uMVOqPOQsmYpDloPtyscKMOtFcbnHeZ+N7 3iCC5bJiLYNjlNcpuA030hjpl4WEGowfxvADYyozcrRdMXbQuR/x1Sy0oYXYity75q7o UwJMttBlJHRRyz5vVfzj7CsTYPpWQZ1DtLtFEe02e5utFUv3co8rIiKwqPYwv3r896xn XXKA== 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 nd19si9551058ejc.48.2021.09.24.01.08.32; Fri, 24 Sep 2021 01:08:55 -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 S244577AbhIXII2 (ORCPT + 99 others); Fri, 24 Sep 2021 04:08:28 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:40356 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S244555AbhIXIIY (ORCPT ); Fri, 24 Sep 2021 04:08:24 -0400 X-UUID: 646cc5ea3a6b45b5a02c8e683d35cf34-20210924 X-UUID: 646cc5ea3a6b45b5a02c8e683d35cf34-20210924 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2037810613; Fri, 24 Sep 2021 16:06:49 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Sep 2021 16:06:48 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 24 Sep 2021 16:06:46 +0800 From: Zhiyong Tao To: , , , , CC: , , , , , , , , , , , , , Chen-Yu Tsai Subject: [PATCH v14 3/5] pinctrl: mediatek: fix coding style Date: Fri, 24 Sep 2021 16:06:30 +0800 Message-ID: <20210924080632.28410-4-zhiyong.tao@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210924080632.28410-1-zhiyong.tao@mediatek.com> References: <20210924080632.28410-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 Reviewed-by: Chen-Yu Tsai --- 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