Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2120342rwi; Sat, 15 Oct 2022 08:14:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5KMGezdNL1kvrcOcNIFChtjkgGiLMo4JeN6Aq7Wc3ShonBRx8nEYiZvKc2rPmhg1v4W5Kv X-Received: by 2002:a17:907:74e:b0:74f:83d4:cf58 with SMTP id xc14-20020a170907074e00b0074f83d4cf58mr2416103ejb.178.1665846857285; Sat, 15 Oct 2022 08:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665846857; cv=none; d=google.com; s=arc-20160816; b=ipmf6EIuZ2IEQQKhRbhPQ9qOZA6IGWDZRknFka8RFilNMtuhOXqxYRQiFwTISfjD6f E4hsqodUopz9cj7KxnAsnY4L8MtP1vGebmTRXcl1n/JXAyu3Omo9sVLRsgQmORr/EDSF p5Nt6jJQxePYHLJb3bagTGEsL3xLgK51LdGEn7qZtDjxjmj7r8YQuBirMh/ealbr6y0/ Svq9hEM6CE0KGbR4vGC+uYef4CY+ArCD4jIFN/8f9rhxI72iMtlfpnpjhzzFav+7ASml 3MkqJkQsAP2IsFaQF3DmuOZ99KQigPXIZ05onACUIi/Y5mBGHKpeFjIuf7bjmUeY1/IC +Kww== 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=P8N5p5gAAHJz6KlwrSDfKOHeE9INoGoliCAEnlPU1EE=; b=blN531Z69Fm1PueIoA3WtdcNt1BhW9SHB7So0rODpRMY5OsKnHQmBrttc31b7wZQQF TPk8pZebYf0PFrANFR6oPJUIZf6otZgrmK/D0Czk6W/nYz218+QTkPAC9zXsMcIQqSEU cDSsnTkZ0Hu8rBIjAPHROHgb8XihHtlS1KV4zkCRCRvwXKRFXZUpakCjIzZ1Q/Pbc2fJ TGOtGzfUUbL654cYPg8oSMdfL9fjlPucAOnIYjYFdcKzpGIJk5U1Hmr9EhTyaT3ODzg3 yM6WPwA/e8vuTzBRiAhkd8jiBy6pZy15R81fE8XUElVEG/nDFUm3qOhqwneMJO28W1Zo mmNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10-20020a1709060d4a00b007878144285csi4387534ejh.314.2022.10.15.08.13.50; Sat, 15 Oct 2022 08:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229804AbiJOPLt (ORCPT + 99 others); Sat, 15 Oct 2022 11:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiJOPLk (ORCPT ); Sat, 15 Oct 2022 11:11:40 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DC2A45997 for ; Sat, 15 Oct 2022 08:11:38 -0700 (PDT) Received: from ipservice-092-217-066-135.092.217.pools.vodafone-ip.de ([92.217.66.135] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1ojip4-0006sp-CF; Sat, 15 Oct 2022 17:11:34 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 04/10] staging: r8188eu: SwLedOn needs no padapter parameter Date: Sat, 15 Oct 2022 17:11:09 +0200 Message-Id: <20221015151115.232095-5-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221015151115.232095-1-martin@kaiser.cx> References: <20221015151115.232095-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the padapter parameter from the SwLedOn function. padapter can be derived from the pLed parameter. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_led.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c index 38433296d327..aa8f41edfade 100644 --- a/drivers/staging/r8188eu/core/rtw_led.c +++ b/drivers/staging/r8188eu/core/rtw_led.c @@ -29,8 +29,10 @@ static void ResetLedStatus(struct led_priv *pLed) pLed->bLedScanBlinkInProgress = false; } -static void SwLedOn(struct adapter *padapter, struct led_priv *pLed) +static void SwLedOn(struct led_priv *pLed) { + struct adapter *padapter = container_of(pLed, struct adapter, ledpriv); + if (padapter->bDriverStopped) return; @@ -67,7 +69,7 @@ static void blink_work(struct work_struct *work) if (pLed->bLedOn) SwLedOff(padapter, pLed); else - SwLedOn(padapter, pLed); + SwLedOn(pLed); switch (pLed->CurrLedState) { case LED_BLINK_SLOWLY: -- 2.30.2