From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BC76FC87FD2 for ; Fri, 8 Aug 2025 15:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=sqAwl0a2QGoDJ7YBnPp9abhQK/NI5EYn2C5DO5jHFwM=; b=0Ms3uzwbwumS9E+zGmeMi1bSn1 bPKwddWKBB+mZLYXknpTPo4IsPY8AXWbfJdWJRzIAdRBCfvcxTZIXC2/T47Ce0YcxVhGJMYEE4lBh 55rGvP3FgwwCjAVH14CB4IWntJyL9TAm2acArGM+It4cc7TGNhZ5Em32C1zlQQdDMvn4K83IXuClM 6t4egg1b3COQFPb0lAXpzzyvBCUCWfnCxClsiv6Q8RDfxKBw+OVcYksxR1zjtga/QLFaNlttahCOz AtS+hZwaktLeXv5yprt4yktYmSepYDyiJB2drQuCom6nMoY9f5ATFJi/6jABeYZLAXHnVLhmkZOdE L7xRvd2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1ukOwm-000000039pF-3KWX; Fri, 08 Aug 2025 15:23:56 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1ukOwl-000000039oQ-1AUN for ath10k@lists.infradead.org; Fri, 08 Aug 2025 15:23:56 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A8C465C0FDA; Fri, 8 Aug 2025 15:23:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB95FC4CEED; Fri, 8 Aug 2025 15:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1754666634; bh=oAFQA9TbeQJ0JUZrMnAe5qsvI2i9waFhIJMusddsYPc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p83HcBtPUk2RQWICi6LA+VYl/Qwb8fzNLUGwm4IU4Gotr0D0SkpnN2j3Mf4sE57VS YE1fpMV8MJBc6H+lj44sxARxOBgOo5KWAQo3XaYP8KunAdsE6ZYVwkE4KWD7dIZR4L l3ujmsdw4i4eWjxIAZsZrICO5oL9Ugdt6/LIcKInGAjmL6A0DN7x+GKcI5IzwYK9fN RFyD+iJtozyJW6/4ZBhkDJaReuUCcxBZKGeJwzuiTTM4rDiXvo3RT+trnFAr7N1CQT T0RSKOW2fY443efBYt+EjFY3BAFHE0a3aPIdqOpJ2aGbDmEpkkFOr0T+V2laHpSlvW m7QfkqlYe+8tg== From: Arnd Bergmann To: Bartosz Golaszewski , Linus Walleij , linux-gpio@vger.kernel.org, Jeff Johnson Cc: Arnd Bergmann , linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/21] ath10k: remove gpio number assignment Date: Fri, 8 Aug 2025 17:18:00 +0200 Message-Id: <20250808151822.536879-17-arnd@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250808151822.536879-1-arnd@kernel.org> References: <20250808151822.536879-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250808_082355_352652_37F800DB X-CRM114-Status: GOOD ( 11.21 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath10k" Errors-To: ath10k-bounces+ath10k=archiver.kernel.org@lists.infradead.org From: Arnd Bergmann The leds-gpio traditionally takes a global gpio number in its platform data, but the number assigned here is not actually such a number but only meant to be used internally to this driver. As part of the kernel-wide cleanup of the old gpiolib interfaces, the 'gpio' number field is going away, so to keep ath10k building, move the assignment into a private structure instead. Signed-off-by: Arnd Bergmann --- drivers/net/wireless/ath/ath10k/leds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/leds.c b/drivers/net/wireless/ath/ath10k/leds.c index 9b1d04eb4265..3a6c8111e7c6 100644 --- a/drivers/net/wireless/ath/ath10k/leds.c +++ b/drivers/net/wireless/ath/ath10k/leds.c @@ -27,7 +27,7 @@ static int ath10k_leds_set_brightness_blocking(struct led_classdev *led_cdev, goto out; ar->leds.gpio_state_pin = (brightness != LED_OFF) ^ led->active_low; - ath10k_wmi_gpio_output(ar, led->gpio, ar->leds.gpio_state_pin); + ath10k_wmi_gpio_output(ar, ar->hw_params.led_pin, ar->leds.gpio_state_pin); out: mutex_unlock(&ar->conf_mutex); @@ -64,7 +64,6 @@ int ath10k_leds_register(struct ath10k *ar) snprintf(ar->leds.label, sizeof(ar->leds.label), "ath10k-%s", wiphy_name(ar->hw->wiphy)); ar->leds.wifi_led.active_low = 1; - ar->leds.wifi_led.gpio = ar->hw_params.led_pin; ar->leds.wifi_led.name = ar->leds.label; ar->leds.wifi_led.default_state = LEDS_GPIO_DEFSTATE_KEEP; -- 2.39.5