Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3090912pxb; Mon, 6 Sep 2021 12:04:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfAjKEkfIg5b2nzVM5Vi+v4gMeoCgU1GE0M3xqo2QRgM7tJLulbcpPuatE31hUhy56ktDV X-Received: by 2002:aa7:d68b:: with SMTP id d11mr15054436edr.243.1630955086576; Mon, 06 Sep 2021 12:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630955086; cv=none; d=google.com; s=arc-20160816; b=nv/HE74jkZBktqOJZqyyAOjxu/uc2d1dlRImUp14QtDes0Xxm/hND5vSJFWm0ms/7Q HQ8cHcgPIsyspM0Tn3sD67uo9hZBG3adiU3UBDluvdb+3qz5yMlGBXf4MHXKL7ouQVXJ wZWzOXBafow+fRbmcVtq4h2V5QHDshjNC4sme7U1ug4bqgVLKPzhR5eL9zVcE8CGJum7 kOghBaaO2Sozl8fTT8jD7eW6wx+RpeIGE+S4aPcJ49y0Qau0S/DGcTyqdZ+hasquekfX Bn3neOl+NCgU41LMNwPCKxgVHXfeNQPSPVzQrjc8FYEfhvA17ns0MLFX9XTy6A9B26gI VM2A== 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 :dkim-signature; bh=J4xkTtQ3wuvhdh3g04JX3HPGsYGJOr6tST/yQR3N1No=; b=xrHTQy28m5cRJIU+FSAyoAt4LkaS9x4b2hTYRhvpQ5ww5h1oWEp1vdWMNMl0eKFn65 Yf/0b6snTBoMMuibxWrdtNe8zIptq3elrteZx4ogaQRiVmhUvbu4oU4MJDhQtnQZ7v6N 7GhYrMC+fODY0LZf0QPpN/2kcfwd0VQ0t0c6sH4qNZWHd2hApoEFFxZERPVbOcB1Kc/H WCfZdhV5CVv5ZwCg1k9YR/LOqE6n5hn//GdEXa1ZW0wn6OtqftWiO3SaZQoLvH7gNxmY FcwOqmF73u0KEM80ReNNko8nWApTIWYKzi4BqzPe1SEUtq/Qrp9Hy5l94i6gmhVWaqo0 Q5Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=i6fnQiWn; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j15si9208738edq.329.2021.09.06.12.04.22; Mon, 06 Sep 2021 12:04:46 -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=@gmail.com header.s=20210112 header.b=i6fnQiWn; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245097AbhIFTDz (ORCPT + 99 others); Mon, 6 Sep 2021 15:03:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244960AbhIFTDx (ORCPT ); Mon, 6 Sep 2021 15:03:53 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39C20C061575 for ; Mon, 6 Sep 2021 12:02:48 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id e21so15054635ejz.12 for ; Mon, 06 Sep 2021 12:02:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J4xkTtQ3wuvhdh3g04JX3HPGsYGJOr6tST/yQR3N1No=; b=i6fnQiWnM0jCzZ900gJBREIVEt2XYei6oWalT0vGkveU5qC+fgnpxHNWC2XH2pKd6M GRyxRA8ChxlQF3m2lrejwfmMO2+ueWWTR7xeNM2EGkm5iVLwt3BYpvtI9Y3efg4lc6bq Px7FLmJk5834E6xBeDXA0kxcYqcLx+0DpMrI15Zsta10158lfpDCm54oH2IVJGfL1Js2 AM70uVmd2xECb2FVUnMTWhXhvhBi/7nmSK+QPSwioW4GKIDg0bUfW3PUv57Nn7U5MZSI UEgDgYEPTdYfK/MT5BC0AW1UwmejuHfXLToS8YtzWFs5cSqwtyJDrhfzCFhYlWboNHvR rfLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J4xkTtQ3wuvhdh3g04JX3HPGsYGJOr6tST/yQR3N1No=; b=fay9MMMVo4TQJJOG2Btud+JHolCq7Ol1qWnHbWZsJDUiSM2OXiIVn4iuq+DsfoEORi 0CBwA8H8/XPdD+5PNhrvbgjgsUsOA9JxYT9EtJoY5Z9Z7ccKA1VSR59lv42HbqebfFNU hLkwON2GD1qn2+JZe0R75VMiQkX6yv2NKPz25x0P2cxG2MfUYLyfSXKKn03rgMDqnc9s w3yK3CbL0brApQzBG6t38upKfr3WlzkAx4uT3g8gGk/oa6hJycNrwkLnMKPSrZUy5fNi IbYphFdrAIkp/cKNvuiGNPT6NTqziNl4+XiyoSP0VW9RtghmnwPbnnkHYxlBSknA5j3g BL5g== X-Gm-Message-State: AOAM533CVwdsazOnRPLIQ3ivGjV8P/n4CJ50LSMe1C4KAyJwJKK3EhFt tVx/ftfgPhA+rdLCT4jPvYE= X-Received: by 2002:a17:907:2492:: with SMTP id zg18mr15609669ejb.233.1630954966808; Mon, 06 Sep 2021 12:02:46 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:3b88::8fe1]) by smtp.gmail.com with ESMTPSA id k15sm4372018ejb.92.2021.09.06.12.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:02:46 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, martin@kaiser.cx, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH v3 02/40] staging: r8188eu: remove DeInitSwLeds from hal_ops Date: Mon, 6 Sep 2021 21:01:45 +0200 Message-Id: <20210906190223.11396-3-straube.linux@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906190223.11396-1-straube.linux@gmail.com> References: <20210906190223.11396-1-straube.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove DeInitSwLeds from hal_ops and remove its wrapper rtw_hal_sw_led_deinit(). Call rtl8188eu_DeInitSwLeds() directly instead. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/hal/hal_intf.c | 6 ------ drivers/staging/r8188eu/hal/usb_halinit.c | 1 - drivers/staging/r8188eu/include/hal_intf.h | 3 --- drivers/staging/r8188eu/os_dep/ioctl_linux.c | 2 +- drivers/staging/r8188eu/os_dep/os_intfs.c | 2 +- 5 files changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/staging/r8188eu/hal/hal_intf.c b/drivers/staging/r8188eu/hal/hal_intf.c index 1848a7246d6d..3c4c719fe9bc 100644 --- a/drivers/staging/r8188eu/hal/hal_intf.c +++ b/drivers/staging/r8188eu/hal/hal_intf.c @@ -25,12 +25,6 @@ void rtw_hal_dm_deinit(struct adapter *adapt) adapt->HalFunc.dm_deinit(adapt); } -void rtw_hal_sw_led_deinit(struct adapter *adapt) -{ - if (adapt->HalFunc.DeInitSwLeds) - adapt->HalFunc.DeInitSwLeds(adapt); -} - u32 rtw_hal_power_on(struct adapter *adapt) { if (adapt->HalFunc.hal_power_on) diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c index 86080d502636..87aa12a6b5ba 100644 --- a/drivers/staging/r8188eu/hal/usb_halinit.c +++ b/drivers/staging/r8188eu/hal/usb_halinit.c @@ -2246,7 +2246,6 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt) halfunc->init_recv_priv = &rtl8188eu_init_recv_priv; halfunc->free_recv_priv = &rtl8188eu_free_recv_priv; - halfunc->DeInitSwLeds = &rtl8188eu_DeInitSwLeds; halfunc->SetHwRegHandler = &SetHwReg8188EU; halfunc->GetHwRegHandler = &GetHwReg8188EU; diff --git a/drivers/staging/r8188eu/include/hal_intf.h b/drivers/staging/r8188eu/include/hal_intf.h index e240d5b2406f..a3da6e04d481 100644 --- a/drivers/staging/r8188eu/include/hal_intf.h +++ b/drivers/staging/r8188eu/include/hal_intf.h @@ -143,8 +143,6 @@ struct hal_ops { s32 (*init_recv_priv)(struct adapter *padapter); void (*free_recv_priv)(struct adapter *padapter); - void (*DeInitSwLeds)(struct adapter *padapter); - void (*dm_init)(struct adapter *padapter); void (*dm_deinit)(struct adapter *padapter); @@ -255,7 +253,6 @@ void rtw_hal_free_data(struct adapter *padapter); void rtw_hal_dm_init(struct adapter *padapter); void rtw_hal_dm_deinit(struct adapter *padapter); -void rtw_hal_sw_led_deinit(struct adapter *padapter); u32 rtw_hal_power_on(struct adapter *padapter); uint rtw_hal_init(struct adapter *padapter); diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging/r8188eu/os_dep/ioctl_linux.c index 7c18b0adf740..c7229878ee53 100644 --- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c @@ -3862,7 +3862,7 @@ static int rtw_rereg_nd_name(struct net_device *dev, rtw_led_control(padapter, LED_CTL_POWER_OFF); rereg_priv->old_bRegUseLed = padapter->ledpriv.bRegUseLed; padapter->ledpriv.bRegUseLed = false; - rtw_hal_sw_led_deinit(padapter); + rtl8188eu_DeInitSwLeds(padapter); /* the interface is being "disabled", we can do deeper IPS */ rereg_priv->old_ips_mode = rtw_get_ips_mode_req(&padapter->pwrctrlpriv); diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8188eu/os_dep/os_intfs.c index 7e0eaa3f7db6..43deffc29833 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -906,7 +906,7 @@ void rtw_cancel_all_timer(struct adapter *padapter) _cancel_timer_ex(&padapter->mlmepriv.dynamic_chk_timer); /* cancel sw led timer */ - rtw_hal_sw_led_deinit(padapter); + rtl8188eu_DeInitSwLeds(padapter); _cancel_timer_ex(&padapter->pwrctrlpriv.pwr_state_check_timer); -- 2.33.0