Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1724955imw; Sat, 9 Jul 2022 10:11:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u3xRITuE6R+xrb+ss8ZH8LTl6IBEeaDufxMbRHrs+R7XbYpq2EudTjO0QbOWV9DMyjQ7bd X-Received: by 2002:a63:6e4f:0:b0:40c:9251:d4a4 with SMTP id j76-20020a636e4f000000b0040c9251d4a4mr8423183pgc.516.1657386697197; Sat, 09 Jul 2022 10:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657386697; cv=none; d=google.com; s=arc-20160816; b=wESV4yHMlXHpapaoIt85r6MI+Yj1zDX41doK5rJ4d98V2b9tQbDRFf7JUKJDOHKKYD ls7oQda0mIHVAn2wkPa7uhXwAK5IAHIIqW/rFhMkR21wfOJeWr6xsi74kfUePEuGN8p/ /z4bBiSdzCmw/VBFEoyW95cvO2/bLMovgaWb6cBF9dL7OewBKPAa4MAWxJn1Rz6VswI9 3g0EjiGzRg/iUQqC4lwVuTGQtOJPvrPUNKt7BDtvCu/H6KTkGxd3oX071lo3pWrhGlX8 Kgu5KEoBdXTbICwkXdIBZ7ryI27CsRmMm9dJ7kVTur4KA7ZauB6WBX0YQPyt4fCo+hOq LUFQ== 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=x34uCQ71Y7IhEZZPa/V470JcqXBn8Hm+LZRo0NK/D1M=; b=NcEiEIf4KWdCdG4o3inasZryFiQaxu7rOtIpCa01v4MvcoJAmGYafGbp55bkAKQgFk rVe7Pc+rbX1b+ukLv6htvfIlALtgddwAVeTmLjdFDZ304eVUCw3xmfPGSu8bla9iL8cf VugmNETTKXkY8nmQhQN0mUDEWbUItx59LrOR0Rwfed/roAT+IPZ/fTHBcoJiimCISkNe XvxQzwnQ9TWPXBnC1ScP4nFe/4+yESvY8SL8k0Sxlv5k3LgsIgv6zILo8Shtu1f6Rd2s 7xDutXm1E3kL78aVyr3qWrnhRM6jJghV4Owz5eATSiEv59UcqRoIZ+LYGGdDxCd2+bxK tG8g== 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 o19-20020a170903301300b0016c1a1bb2fasi2562767pla.569.2022.07.09.10.11.25; Sat, 09 Jul 2022 10:11:37 -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 S229737AbiGIRKi (ORCPT + 99 others); Sat, 9 Jul 2022 13:10:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbiGIRKZ (ORCPT ); Sat, 9 Jul 2022 13:10:25 -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 3392512623 for ; Sat, 9 Jul 2022 10:10:22 -0700 (PDT) Received: from dslb-188-096-144-007.188.096.pools.vodafone-ip.de ([188.96.144.7] 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 1oADyE-0005n0-Vh; Sat, 09 Jul 2022 19:10:19 +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 08/14] staging: r8188eu: merge ReadEFuseByIC into rtl8188e_ReadEFuse Date: Sat, 9 Jul 2022 19:09:54 +0200 Message-Id: <20220709171000.180481-9-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220709171000.180481-1-martin@kaiser.cx> References: <20220709171000.180481-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,T_SCC_BODY_TEXT_LINE 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 The rtl8188e_ReadEFuse function is just a wrapper to call ReadEFuseByIC. Copy ReadEFuseByIC into rtl8188e_ReadEFuse and remove ReadEFuseByIC. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/hal/rtl8188e_hal_init.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c index 5b65313e0b9d..0cb653002660 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c @@ -531,7 +531,7 @@ static void Hal_EfuseReadEFuse88E(struct adapter *Adapter, kfree(eFuseWord); } -static void ReadEFuseByIC(struct adapter *Adapter, u16 _offset, u16 _size_byte, u8 *pbuf) +void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _offset, u16 _size_byte, u8 *pbuf) { int ret = _FAIL; if (rtw_IOL_applied(Adapter)) { @@ -548,11 +548,6 @@ static void ReadEFuseByIC(struct adapter *Adapter, u16 _offset, u16 _size_byte, Hal_EfuseReadEFuse88E(Adapter, _offset, _size_byte, pbuf); } -void rtl8188e_ReadEFuse(struct adapter *Adapter, u16 _offset, u16 _size_byte, u8 *pbuf) -{ - ReadEFuseByIC(Adapter, _offset, _size_byte, pbuf); -} - void rtl8188e_read_chip_version(struct adapter *padapter) { u32 value32; -- 2.30.2