Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4467658pxf; Tue, 16 Mar 2021 14:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh7um6c8BzPd/nAUFsMTuGLaKrJPKcAewHfz4RMIV7bNDztIKCCPIVcEoM9BBoD43ShMAD X-Received: by 2002:aa7:cc03:: with SMTP id q3mr39249797edt.366.1615929975708; Tue, 16 Mar 2021 14:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615929975; cv=none; d=google.com; s=arc-20160816; b=dr2reMXhBTZzxYO8knfAuDEji7gTzMYasJE6vX6Axw9tgNfjua/aiolBfLbCO9Odyn /8bT1PO1f2lajrvNqXDEfoDYMt6e8Mu3KpGY70YiLM9eDwB+ayCGVWdxsoUAf0bdkPgu bH4aXiSeBZG3WgHL9Jk7/LmmQa1NNyt0pAeny1WoDhFpULxPGv/fHILZCO3UaWwBNQL4 FhPwia4NA9XEuWqUo5lQELkiiDvBpChTqo91W1Eb6dky6CI/eszLNI1mPW/Y1mOYQK6/ ujSwtze/IpEIrOhiQTQtcAUgDZjVwl3vsh9VybbAA7k3OssMg2f/kayB5QrrVWJvbm0O Sa2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7rHP/Il1MAYfTug9uW2SOeBpIjYBzsbh242X2Z+B5kw=; b=C5jwzuAsjBUmct5CQHQFaoADRI2v2L9AF3SxyPTJAfTT++//XSvxSV9vmplAGXxKGv jV58xEP6F6kngPMLKd79wnqhxTkLknfINnbyN/G+tFJDLW3KDqU8Bh9h7MAxCtV5YDcL mbeS04QBwj6qmw1oW4CT2UQi98WHv9BJNykxoh3OrEaJdbTig3unFhXHTFX30E6yIHVQ jpVwDTWFWRPHPxsRhizTVL55UHMOgh/s5NqZ3oEr/PQx5isoAUGuYBM1rWs+UgCUcPIo 1Eb84v1AhYPU3u6Yb4NB21o0IuFj4hOlII5vYbM/TFGLFRw2rUcLrf9fH2vvJfXFdvdZ 4FaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=lmfJvxKc; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i15si15094819ejv.550.2021.03.16.14.25.53; Tue, 16 Mar 2021 14:26:15 -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; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=lmfJvxKc; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230187AbhCPUZy (ORCPT + 99 others); Tue, 16 Mar 2021 16:25:54 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:12984 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbhCPUZR (ORCPT ); Tue, 16 Mar 2021 16:25:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1615926318; x=1647462318; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=7rHP/Il1MAYfTug9uW2SOeBpIjYBzsbh242X2Z+B5kw=; b=lmfJvxKc6XuA0dZxFYivOske/M1b7CaIQmWdb/tBrbAk8EBpk05BoBfY 6OH6kdGac640zj5jMbAv/+LTa7rVnSIO09S+GNaNpB3sJMXt0D3iftOAe hIIhh+1fg54APRRBB3YD+R91tWUGfiqWUSxsrGKH6l+CXzzptziQkcuh/ A=; X-IronPort-AV: E=Sophos;i="5.81,254,1610409600"; d="scan'208";a="99356065" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2c-2225282c.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 16 Mar 2021 20:25:10 +0000 Received: from EX13D19EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-2c-2225282c.us-west-2.amazon.com (Postfix) with ESMTPS id E9B76A256B; Tue, 16 Mar 2021 20:25:08 +0000 (UTC) Received: from u8a88181e7b2355.ant.amazon.com (10.43.160.48) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Mar 2021 20:25:02 +0000 From: Hanna Hawa To: , , CC: , , , , , , , , , , , Subject: [PATCH v2 2/3] pinctrl: pinctrl-single: remove unused parameter Date: Tue, 16 Mar 2021 22:24:33 +0200 Message-ID: <20210316202434.27555-3-hhhawa@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210316202434.27555-1-hhhawa@amazon.com> References: <20210316202434.27555-1-hhhawa@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.48] X-ClientProxiedBy: EX13D02UWB003.ant.amazon.com (10.43.161.48) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused parameter 'pin_pos' from pcs_add_pin(). Signed-off-by: Hanna Hawa --- drivers/pinctrl/pinctrl-single.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 91c638b85d2c..f3394517cb2e 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -656,10 +656,8 @@ static const struct pinconf_ops pcs_pinconf_ops = { * pcs_add_pin() - add a pin to the static per controller pin array * @pcs: pcs driver instance * @offset: register offset from base - * @pin_pos: unused */ -static int pcs_add_pin(struct pcs_device *pcs, unsigned offset, - unsigned pin_pos) +static int pcs_add_pin(struct pcs_device *pcs, unsigned int offset) { struct pcs_soc_data *pcs_soc = &pcs->socdata; struct pinctrl_pin_desc *pin; @@ -727,16 +725,14 @@ static int pcs_allocate_pin_table(struct pcs_device *pcs) unsigned offset; int res; int byte_num; - int pin_pos = 0; if (pcs->bits_per_mux) { byte_num = (pcs->bits_per_pin * i) / BITS_PER_BYTE; offset = (byte_num / mux_bytes) * mux_bytes; - pin_pos = i % num_pins_in_register; } else { offset = i * mux_bytes; } - res = pcs_add_pin(pcs, offset, pin_pos); + res = pcs_add_pin(pcs, offset); if (res < 0) { dev_err(pcs->dev, "error adding pins: %i\n", res); return res; -- 2.17.1