Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4914666pxb; Tue, 5 Oct 2021 13:12:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ733lgOkEI1D5rf+DsbtdXuB/rhlgMXVd7xmKYqeVeMotFdlOtpNsosvVbGqcuiycjoXa X-Received: by 2002:a05:6402:35c9:: with SMTP id z9mr13707403edc.174.1633464751276; Tue, 05 Oct 2021 13:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633464751; cv=none; d=google.com; s=arc-20160816; b=03TrixzLGujqAPs32dl0HnD9lM0QhzAN2JhwA5CKzm+cradLdMchP5I0QdRdtS9dKl f/a1TN8bDuu1Efu6Gc9uTR6UB0jY3GuXjFhfCNlBBRVqRClozdOXzWH8F1io3ZwUxS3F 6trc7ou9J8dW99AYn4lQOlO5RWsUiTM0KfEccFxcn0Fzq9CtnMypP6iz4QATwoJHrO8B PGIe2pARBIiLjrnSYsxObVKIrFUhsl0DhPH0tcdVJs6Z7W/oHiqg5ihCB/URKM3S6KrW qObthn41YyvLULosBnuhgo/hmQoC5acSt2muxCQK5CEQxql2SAZNZzgmCuJ2pxvoXt/2 vTbA== 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=gYzluECVupf76E3p4KSFUPsizOALV6N24ge+ZchcVo4=; b=lY17X6cSz0dAIu9zLPSQx5fM1BNs/kS8bThux4O3gKH1rbeEukYREl/W/F2dRFCp9B ujufGjbch4VuveLcQgAnpqHT8qvvxFTIyDOBUVF7wQZKGxrSzEyZn5KSmnotvu/AOIBw DKTlTKqWNhY2pl31urh3WTetwYJINIEl4DWIziB496DBk4F6w5sfvtJwJQfvAOUDSIMN ewxQ1VIpgvhn/FqMh1iQKuC0F/9Xw0OAA/SRzxtBYBpE/rvF46NvGtHgGW1JS2nsLkIj OsxJEPpOzE7uQKDPzUcCZd4I7IUzuY1uokSP5v7rC7fuUWriWqyZpDsYf2jpWtjokjV4 V4LQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si28249404ejw.286.2021.10.05.13.12.06; Tue, 05 Oct 2021 13:12:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236063AbhJEUKv (ORCPT + 99 others); Tue, 5 Oct 2021 16:10:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235823AbhJEUKq (ORCPT ); Tue, 5 Oct 2021 16:10:46 -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 561E0C06174E for ; Tue, 5 Oct 2021 13:08:55 -0700 (PDT) Received: from ipservice-092-217-085-112.092.217.pools.vodafone-ip.de ([92.217.85.112] 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 1mXqk7-000847-Mh; Tue, 05 Oct 2021 22:08:51 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 8/9] staging: r8188eu: interface type is always usb Date: Tue, 5 Oct 2021 22:08:20 +0200 Message-Id: <20211005200821.19783-8-martin@kaiser.cx> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211005200821.19783-1-martin@kaiser.cx> References: <20211005200821.19783-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver only supports chips that connect via usb. Remove interface_type from struct adapter, use a constant in the one place where the interface type is needed. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 5 +---- drivers/staging/r8188eu/include/drv_types.h | 1 - drivers/staging/r8188eu/include/hal_intf.h | 7 ------- drivers/staging/r8188eu/os_dep/usb_intf.c | 3 --- 4 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_dm.c b/drivers/staging/r8188eu/hal/rtl8188e_dm.c index 21494adf2a19..1a0176a60704 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_dm.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_dm.c @@ -40,10 +40,7 @@ static void Init_ODM_ComInfo_88E(struct adapter *Adapter) ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_PLATFORM, ODM_CE); - if (Adapter->interface_type == RTW_GSPI) - ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_INTERFACE, ODM_ITRF_SDIO); - else - ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_INTERFACE, Adapter->interface_type);/* RTL871X_HCI_TYPE */ + ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_INTERFACE, ODM_ITRF_USB); ODM_CmnInfoInit(dm_odm, ODM_CMNINFO_IC_TYPE, ODM_RTL8188E); diff --git a/drivers/staging/r8188eu/include/drv_types.h b/drivers/staging/r8188eu/include/drv_types.h index 9b9f7d89519c..3c972acf329c 100644 --- a/drivers/staging/r8188eu/include/drv_types.h +++ b/drivers/staging/r8188eu/include/drv_types.h @@ -205,7 +205,6 @@ struct adapter { * replace module. */ int pid[3];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */ int bDongle;/* build-in module or external dongle */ - u16 interface_type;/* USB,SDIO,SPI,PCI */ struct dvobj_priv *dvobj; struct mlme_priv mlmepriv; diff --git a/drivers/staging/r8188eu/include/hal_intf.h b/drivers/staging/r8188eu/include/hal_intf.h index 89bd6f4b06e2..ffed6ddadd3f 100644 --- a/drivers/staging/r8188eu/include/hal_intf.h +++ b/drivers/staging/r8188eu/include/hal_intf.h @@ -8,13 +8,6 @@ #include "drv_types.h" #include "Hal8188EPhyCfg.h" -enum RTL871X_HCI_TYPE { - RTW_PCIE = BIT(0), - RTW_USB = BIT(1), - RTW_SDIO = BIT(2), - RTW_GSPI = BIT(3), -}; - enum hw_variables { HW_VAR_MEDIA_STATUS, HW_VAR_MEDIA_STATUS1, diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c index 193b5faac56a..5699c44a722b 100644 --- a/drivers/staging/r8188eu/os_dep/usb_intf.c +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c @@ -379,9 +379,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, padapter->hw_init_mutex = &usb_drv->hw_init_mutex; - /* step 1-1., decide the chip_type via vid/pid */ - padapter->interface_type = RTW_USB; - if (rtw_handle_dualmac(padapter, 1) != _SUCCESS) goto free_adapter; -- 2.20.1