Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp443248pxb; Wed, 15 Sep 2021 05:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw9nZdIf2Com4u8/4p2qQGbfQLUp3EXJn0Pqnc61DyEIm8xbbMkLz8S/PbeJSUbnDPAH/1 X-Received: by 2002:a92:1306:: with SMTP id 6mr15487443ilt.183.1631710063773; Wed, 15 Sep 2021 05:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631710063; cv=none; d=google.com; s=arc-20160816; b=iC9rSveLVNUl0JwDe+WAqVuYJnB0RDqCbYl7rY4JPKbIUindxo0JzkC/uWMZ98d+CI R922agb4g4YJoEu1dmTfVgdbdMAOxR1cu1Mm6iJ+Qv2Vhmt/FIgf1WaKHXXl9lnQVCMS AEr3HYCS7J+p1XRTdfg7ck2zq4gwABakPnlFxx/rIHRcyrsAiHocS3+HddcbKnaOLwyJ VdTUCpXRg7yJzM7jfX48U7d5lFGyRasqWiXRtnO4u0lf6O4eNiV6EvLPNEONYDqfMm6w GmwWjiQMn4Jd7HANGnoaLFPfv8XpAwE/XmZLtslv6T6Wag1pp0F15Z/IeP1Pde5SMjCR X/nA== 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=20wywgQEOo0egoQmBSEpanb7Vzi97onrpQZGv5F4kZg=; b=v6v362PfHV/tMCV/b/DOEaejhbxq8iq4CDvU/xkCXLTDTSJmxIrUDGMrJus94L3T+d OvFOuJxcooUJWD/ArpFKQR41QCOHFXj94HV3nCmGjDLFmOiOED8hyBWpVohuFf33RJzM K0dcrweyComs/TIH4gB4Dx7fsEDMkKBS1MtThHytZBO5yG+Bi6ifyyJjrFaNR1gm1/0P CK4any5MqbKULL0MKFLY/8UqVZYwOV8luNdOlYGfhxHT+ZdEsnNUa5sfFT72Ove7KSq3 01Gwg5XmvqEPZK91yLkCEf8qV3Qd7rtdwKYUsjgJcKfhK2agpY+L0YoxBWLAxEr/1F9b GdeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OKE9OcXa; 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 16si6213208ily.161.2021.09.15.05.47.32; Wed, 15 Sep 2021 05:47:43 -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=OKE9OcXa; 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 S237893AbhIOMqE (ORCPT + 99 others); Wed, 15 Sep 2021 08:46:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237872AbhIOMqD (ORCPT ); Wed, 15 Sep 2021 08:46:03 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF0B3C061574 for ; Wed, 15 Sep 2021 05:44:44 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id i6so4181831edu.1 for ; Wed, 15 Sep 2021 05:44:44 -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=20wywgQEOo0egoQmBSEpanb7Vzi97onrpQZGv5F4kZg=; b=OKE9OcXa9GCgYZbsRBoHNdSURhOECrxAjId9RtbtreLfCJl5AFlhlYSFIpt6vOXEmU uWx7frNkquimr1ShZ1e/9uH594hJBM2pvQabSK52thMJvdCrXz43KNjOTSS6EJBqvCi9 3xho2Wl7LrUkgEMB2XfrIjAPa8shwWLM2xOGVNamZywPrZqezLuYbDQvTY+VnWfeNxwL lnLrxc2WtJVva/n5QosPjwLtp4js5g2YIzq18K3zaqf0BAkVinVxxLidrEEwo9JAouOi c4ap7LMMR7tqKpZMCI4pqjT9DOxlTGHzpOt4fTv+iqQdU9hNDWm9sOYs3vBNSG/RJBoJ KvpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=20wywgQEOo0egoQmBSEpanb7Vzi97onrpQZGv5F4kZg=; b=R7ygSX4EwsLI2BL+iIw8TxFNX0DNGE+J+o1o6itP8eZRlG8+F+kGgvYgjm+df1Zqrp zG585rg+3bRRbEmelRLAF0ighRBuE+jcs9WJeD2NqZDInoaqrJQshQqAt2pOsVQrAacu aW2CMELyJEJspOI2N/c56NQ1Z13AGcMZ1lV/hLbTNhHR4XICpNb0z1PnZ7QyeQ/9kslL 0YlzKDFlHRmpHPcTWJ3PxeXkVrjLcecOesske3FoVuHvxjwrDyzy1zID05Dh9gi8mi9E KX/NVcEjckKfAuKkLTDQcb1Br4znOkU7C8IKWsQ1hzLab7wl5oxaBUsM8buM0/PIx54D 9mIg== X-Gm-Message-State: AOAM532LMw7/bHCY1zieGTBUWz3HkYWwDWGVhlVnuGGPJDuRyfHv1Yr4 T+VSPBMRNrNqVg/w9Zi8m3Q= X-Received: by 2002:a05:6402:229c:: with SMTP id cw28mr22114784edb.356.1631709883282; Wed, 15 Sep 2021 05:44:43 -0700 (PDT) Received: from localhost.localdomain.it (host-79-43-5-131.retail.telecomitalia.it. [79.43.5.131]) by smtp.gmail.com with ESMTPSA id s3sm6394002ejm.49.2021.09.15.05.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Sep 2021 05:44:42 -0700 (PDT) From: "Fabio M. De Francesco" To: Larry Finger , Philip Potter , Greg Kroah-Hartman , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, David Laight , Dan Carpenter Cc: "Fabio M . De Francesco" Subject: [PATCH v5 14/19] staging: remove struct _io_ops Date: Wed, 15 Sep 2021 14:41:44 +0200 Message-Id: <20210915124149.27543-15-fmdefrancesco@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210915124149.27543-1-fmdefrancesco@gmail.com> References: <20210915124149.27543-1-fmdefrancesco@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pavel Skripkin Finally struct _io_ops is unused, so remove it. Co-developed-by: Fabio M. De Francesco Signed-off-by: Fabio M. De Francesco Signed-off-by: Pavel Skripkin --- drivers/staging/r8188eu/hal/usb_ops_linux.c | 6 ----- drivers/staging/r8188eu/include/rtw_io.h | 25 --------------------- drivers/staging/r8188eu/include/usb_ops.h | 2 -- 3 files changed, 33 deletions(-) diff --git a/drivers/staging/r8188eu/hal/usb_ops_linux.c b/drivers/staging/r8188eu/hal/usb_ops_linux.c index 2516cfc464a9..117213c9f984 100644 --- a/drivers/staging/r8188eu/hal/usb_ops_linux.c +++ b/drivers/staging/r8188eu/hal/usb_ops_linux.c @@ -558,12 +558,6 @@ void rtl8188eu_xmit_tasklet(unsigned long priv) } } -void rtl8188eu_set_intf_ops(struct _io_ops *pops) -{ - - memset((u8 *)pops, 0, sizeof(struct _io_ops)); -} - void rtl8188eu_set_hw_type(struct adapter *adapt) { adapt->chip_type = RTL8188E; diff --git a/drivers/staging/r8188eu/include/rtw_io.h b/drivers/staging/r8188eu/include/rtw_io.h index 2b9b64f1ac80..c6a078210eeb 100644 --- a/drivers/staging/r8188eu/include/rtw_io.h +++ b/drivers/staging/r8188eu/include/rtw_io.h @@ -84,30 +84,6 @@ struct intf_priv; struct intf_hdl; struct io_queue; -struct _io_ops { - u8 (*_read8)(struct intf_hdl *pintfhdl, u32 addr); - u16 (*_read16)(struct intf_hdl *pintfhdl, u32 addr); - u32 (*_read32)(struct intf_hdl *pintfhdl, u32 addr); - int (*_write8)(struct intf_hdl *pintfhdl, u32 addr, u8 val); - int (*_write16)(struct intf_hdl *pintfhdl, u32 addr, u16 val); - int (*_write32)(struct intf_hdl *pintfhdl, u32 addr, u32 val); - int (*_writeN)(struct intf_hdl *pintfhdl, u32 addr, u32 length, - u8 *pdata); - int (*_write8_async)(struct intf_hdl *pintfhdl, u32 addr, u8 val); - int (*_write16_async)(struct intf_hdl *pintfhdl, u32 addr, u16 val); - int (*_write32_async)(struct intf_hdl *pintfhdl, u32 addr, u32 val); - void (*_read_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, - u8 *pmem); - void (*_write_mem)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, - u8 *pmem); - u32 (*_read_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, - u8 *pmem); - u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, - u8 *pmem); - void (*_read_port_cancel)(struct intf_hdl *pintfhdl); - void (*_write_port_cancel)(struct intf_hdl *pintfhdl); -}; - struct io_req { struct list_head list; u32 addr; @@ -125,7 +101,6 @@ struct io_req { struct intf_hdl { struct adapter *padapter; struct dvobj_priv *pintf_dev; - struct _io_ops io_ops; }; struct reg_protocol_rd { diff --git a/drivers/staging/r8188eu/include/usb_ops.h b/drivers/staging/r8188eu/include/usb_ops.h index c53cc54b6b87..1939b781b097 100644 --- a/drivers/staging/r8188eu/include/usb_ops.h +++ b/drivers/staging/r8188eu/include/usb_ops.h @@ -21,8 +21,6 @@ void rtl8188eu_set_hw_type(struct adapter *padapter); #define hal_set_hw_type rtl8188eu_set_hw_type -void rtl8188eu_set_intf_ops(struct _io_ops *pops); -#define usb_set_intf_ops rtl8188eu_set_intf_ops /* * Increase and check if the continual_urb_error of this @param dvobjprivei -- 2.33.0