From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36B6F402435; Thu, 11 Jun 2026 13:03:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781182997; cv=none; b=TArENfgtRvGIx0h3s8xDiC9ixGXI+Jx+BBNSLOwgVV6obHP+rI7IF5oPsrZmvy9GAlhyMwN13W3SpnS9l+Mn9cHQnbpF3PgpIastuJgiZgSVwWrYYhCOkOtGxDRnmwe5E4qSMBgeUykD2sG5Izl18zUBx3G8nDMe41B4ArEtg6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781182997; c=relaxed/simple; bh=y8QvJAFpRq/Nu4G7rOPBEVDheOqMAVcF03gYnzXnjSc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oqRz5qAvVVGsTPEEj59tPen+B13tAC9119wTsHSylN5yEzW7oNRdspZxjqWx/7FQQ0zOKixcgocY1rPUhfHJmFe4fFl7KKoDnpL8D/MG3HJh3lZj5xAPbG8kFlFjjT6558SSHgBHyC0rBgYKIQi7nKMgEOs6/W8Ak5RN4TE/TFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VieB3606; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VieB3606" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 991471F00898; Thu, 11 Jun 2026 13:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781182994; bh=x28qf66llMgEBHqRh59BFdnkE0BpEZ0N/dpuSpAErzs=; h=From:To:Cc:Subject:Date; b=VieB3606KhANk+tQJbbb2raJb73GpVBT5Y2q8wE7/b/ImcOOezqYiWvoL0xVncLN+ TtK9GV9ZYGvv4XQmesjFh8ZPwLDGkqK1+GX+LAXPmdpPfNu6v6ISQHxzUxg+Iw72b7 J3BMdxe65qO2rQ3PnmHby3B1vEN/gyIu+iJrekRXDhSfEgoJ8WAGp2SM1YHU09ne36 0t7y6JR3YjjXnz22LbS12+T0hbvGuGAD3ld5ZDeNF5+4bKXzGJ16BV5AzfpuYHCDyn jnYxpcLo08k95wjr2gCdNbLriB3YR3FWGIrhNqoRQfIhO66/VypwY2yIupWjuPYlGO Y7qTwPekLaNzQ== From: Arnd Bergmann To: Bjorn Andersson , Linus Walleij , Ajay Kumar Nandam Cc: Arnd Bergmann , Konrad Dybcio , Bartosz Golaszewski , Dmitry Baryshkov , Nickolay Goppen , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: qcom: lpass-lpi: remove unused lpi_gpio_write function Date: Thu, 11 Jun 2026 15:03:04 +0200 Message-Id: <20260611130308.3415258-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann All callers of this function were converted to calling __lpi_gpio_write instead, so it now causes a warning: drivers/pinctrl/qcom/pinctrl-lpass-lpi.c:82:12: error: unused function 'lpi_gpio_write' [-Werror,-Wunused-function] 82 | static int lpi_gpio_write(struct lpi_pinctrl *state, unsigned int pin, Remove the unused function. Fixes: b719ede389d8 ("pinctrl: qcom: lpass-lpi: Switch to PM clock framework for runtime PM") Signed-off-by: Arnd Bergmann --- drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c index 4d758fd117c4..fe7ec0176081 100644 --- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c +++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c @@ -79,20 +79,6 @@ static int lpi_gpio_read(struct lpi_pinctrl *state, unsigned int pin, return pm_runtime_put_autosuspend(state->dev); } -static int lpi_gpio_write(struct lpi_pinctrl *state, unsigned int pin, - unsigned int addr, unsigned int val) -{ - int ret; - - ret = pm_runtime_resume_and_get(state->dev); - if (ret < 0) - return ret; - - __lpi_gpio_write(state, pin, addr, val); - - return pm_runtime_put_autosuspend(state->dev); -} - static const struct pinctrl_ops lpi_gpio_pinctrl_ops = { .get_groups_count = pinctrl_generic_get_group_count, .get_group_name = pinctrl_generic_get_group_name, -- 2.39.5