Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4618415pxj; Wed, 12 May 2021 09:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygxVojrTdcM9oCAI14J8l4DEeCXdWO4TPm7g0CRc0sQ4gs9a8Eq3NQmVeIBWcc2UG0SV6J X-Received: by 2002:a17:906:66cb:: with SMTP id k11mr2272558ejp.9.1620836466691; Wed, 12 May 2021 09:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836466; cv=none; d=google.com; s=arc-20160816; b=kOAqNKUBFkiIWTk83Vv+Z1uu3fGBe6lD1q47xOTW76dQV+2RYayZ4B7Dtnv41yBzQI /grWnu59GBnhKHI2YaKUwNzfpnpi9Lqm5qQRXe/eE1lxYPUPspSG3Zaj/zXe6v1qTGsN a4LE/vc3spoeePCup1+D05P45NPvT9kfJgRHiTNgwdyrBcg5l2MoUw4cO1jmMzorjVqt PAhiGnY9kJehDQupRR+NuxsrhQT3rI52r58ONISid8fWFxgQ80TFC8j7BGZH0t9oQfbq o4fu6X/zsCzZr0CIrNycZXmOY6xo4JXD/grmWEII2Z3rSknGfN3Yd7vFUCXQcQ130HHo mbHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Co5WPhmVY3FNMFXAb62wz0Uc7bmkP0qNxurqw3OMEYU=; b=sem/e+yvjjQEaYlAiconuV6UtoTRwjh2zAUaXDOzF9Dhbg6oNLPHz50mAwVu5M9UI/ TXjEKiI3DV/DMDeKdRGe/BlhdBawPDqNFnVcYf/Z79XHCq/JcdbCcILr2U0Q3WmqxoB+ 7ambHgPuPoNHF4FcJlJJpdMyRmgu2kRebL3Zj9IyGhe1f8ziJk6sQFmRO4P7WAnfshT8 y+TQC/kF4zRrmLboy8XbQouaW1BOL3f6Rs7XX0cpeR4nk6SltlFwxrsodLa4nub0NNCi USAAow9xomeKdom7qNEk+xQ2y/ZcIJ4etci1h7+qkGBxOuHdkFfokNuchzEJQrZRX2uH O8kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mYrAUWWl; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id af15si382740ejc.400.2021.05.12.09.20.41; Wed, 12 May 2021 09:21:06 -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=@linuxfoundation.org header.s=korg header.b=mYrAUWWl; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235890AbhELQTv (ORCPT + 99 others); Wed, 12 May 2021 12:19:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:56350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236057AbhELPgv (ORCPT ); Wed, 12 May 2021 11:36:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B5C70613FB; Wed, 12 May 2021 15:18:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832695; bh=CmJInMbAdaPMSu03qFZ5OvlBgnf9OZ14F83ONkHe1cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mYrAUWWlsoO1Ds1XrWTXLvMYIrGRSSvghzzOfee4ufSpzjZandBwfqeCTLLwPx0ce pqwOQUdLXenYru6LBETQe2WwVxCAkDPcE8WMACGA2vK7djlumeN4QyyeqZ9DyHAc1y KKAcpgBa2pd1LgBphIM1PS/0/ckg66AYSo1djD98= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hanna Hawa , Tony Lindgren , Drew Fustini , Linus Walleij , Sasha Levin Subject: [PATCH 5.10 368/530] pinctrl: pinctrl-single: remove unused parameter Date: Wed, 12 May 2021 16:47:58 +0200 Message-Id: <20210512144831.878978516@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hanna Hawa [ Upstream commit 8fa2ea202b13b6da81e26c399ff1d87488398453 ] Remove unused parameter 'pin_pos' from pcs_add_pin(). Signed-off-by: Hanna Hawa Reviewed-by: Tony Lindgren Reviewed-by: Drew Fustini Link: https://lore.kernel.org/r/20210319152133.28705-3-hhhawa@amazon.com Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- 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 f3cd7e296712..539543898c89 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; @@ -729,16 +727,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.30.2