Message ID | 20230206201800.139195-1-martin@kaiser.cx |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2451306wrn; Mon, 6 Feb 2023 12:43:08 -0800 (PST) X-Google-Smtp-Source: AK7set991dqmzQ+ZxAtQocROfbGwWTUhfCDGJKs3MExvImRYLRdqQoeCA2aqDsYTbVgmdAuCiWFD X-Received: by 2002:a17:906:ce28:b0:878:7349:5ce6 with SMTP id sd8-20020a170906ce2800b0087873495ce6mr664811ejb.71.1675716188486; Mon, 06 Feb 2023 12:43:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675716188; cv=none; d=google.com; s=arc-20160816; b=IGVruMbrnpWPI9qXcUPQeKJ6m9eLq9rHZwzSXtYj9SaD3FM7s+uYaIs5tE1BJQM22I CZSltV31geiW3hjJkC5Jo/nLSSI+aJ/rei8Z42Eienss3Pc+wZUvB0EMr66q+RMKN2Cu a+j9czm6sD/E8s2HseJ0pXvVYF28g/Ors7nHKcMH0eK0I7goUA4LNFOaX7wYHglEx6Dj Z5hpdHWig7KRKl3rOXdsoma1jGVw2dEGznCv6o5cWy+u6HYz9lgmTYwA3nk9lbJYxV46 Z8v5QM1zgnSPQbwgPEgi4OBjC4n/XmR+m/sXjR+p4gQs/Zpl5R7BBME/h+97wnvC0jg5 N3Fg== 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 :message-id:date:subject:cc:to:from; bh=e5FBA1q6Gb+QZxjlRDeMyp2G9DuFqLctMLLRC2OZ9Z8=; b=OJd3z9rdmqRF0/HRjvNYxFxuSxn/anZQnfhnTevvtRfDPN8z/mxibvtlbWjIP++vEq bQj7Wg4Ua9DpF6OmL1aM7K1BpZ0/R5IwvbbNVmJ+xMjusJjTGoSww43tqvvMPkvLJdZ/ elbKTJ/u7suno7H3o9opvgeJMcdoc5e9iDw+BXyV/OE6Fo0KAhLQRaO7qViCLbNTr35u 6PrJ0V9pMPwhhwWMpmEhb4n1fKJQkewb0/Iw2X37RRcZcxAx1iO+MSuQ9sXywghGwowO +Tkc7YijsgSwZty1l1BDL+5PY61u4DrGgEYXhA1JYbkkOc9FKDq5IHfqsMSpaAstCQtb oQHw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a17090668ce00b008784bef345bsi15674204ejr.627.2023.02.06.12.42.45; Mon, 06 Feb 2023 12:43:08 -0800 (PST) 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 S229500AbjBFUSf (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Mon, 6 Feb 2023 15:18:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbjBFUSd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Feb 2023 15:18:33 -0500 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 3C16B1026E for <linux-kernel@vger.kernel.org>; Mon, 6 Feb 2023 12:18:15 -0800 (PST) Received: from ipservice-092-217-084-033.092.217.pools.vodafone-ip.de ([92.217.84.33] 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 <martin@kaiser.cx>) id 1pP7wE-0007ps-Sz; Mon, 06 Feb 2023 21:18:06 +0100 From: Martin Kaiser <martin@kaiser.cx> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Larry Finger <Larry.Finger@lwfinger.net>, Phillip Potter <phil@philpotter.co.uk>, Michael Straube <straube.linux@gmail.com>, Pavel Skripkin <paskripkin@gmail.com>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx> Subject: [PATCH 0/6] staging: r8188eu: remove intf_start and intf_stop Date: Mon, 6 Feb 2023 21:17:54 +0100 Message-Id: <20230206201800.139195-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757115778213295892?= X-GMAIL-MSGID: =?utf-8?q?1757115778213295892?= |
Series |
staging: r8188eu: remove intf_start and intf_stop
|
|
Message
Martin Kaiser
Feb. 6, 2023, 8:17 p.m. UTC
Remove the two pointers to media-specific start and stop functions. The r8188eu driver supports only usb. Update some of the functions in the start and stop paths to return standard error codes instead of _SUCCESS and _FAIL. Martin Kaiser (6): staging: r8188eu: pass a struct recv_buf to rtw_read_port staging: r8188eu: use standard error codes in rtw_read_port staging: r8188eu: use standard error codes in rtl8188eu_inirp_init staging: r8188eu: remove intf_start pointer staging: r8188eu: handle rtl8188eu_inirp_init errors staging: r8188eu: remove intf_stop pointer drivers/staging/r8188eu/hal/usb_halinit.c | 16 ++++++-------- drivers/staging/r8188eu/hal/usb_ops_linux.c | 20 ++++++++--------- drivers/staging/r8188eu/include/drv_types.h | 2 -- drivers/staging/r8188eu/include/hal_intf.h | 2 +- drivers/staging/r8188eu/include/rtw_io.h | 2 +- drivers/staging/r8188eu/os_dep/os_intfs.c | 12 +++++------ drivers/staging/r8188eu/os_dep/usb_intf.c | 24 +++------------------ 7 files changed, 26 insertions(+), 52 deletions(-)
Comments
On 2/6/23 21:17, Martin Kaiser wrote: > Remove the two pointers to media-specific start and stop functions. The > r8188eu driver supports only usb. > > Update some of the functions in the start and stop paths to return > standard error codes instead of _SUCCESS and _FAIL. > > Martin Kaiser (6): > staging: r8188eu: pass a struct recv_buf to rtw_read_port > staging: r8188eu: use standard error codes in rtw_read_port > staging: r8188eu: use standard error codes in rtl8188eu_inirp_init > staging: r8188eu: remove intf_start pointer > staging: r8188eu: handle rtl8188eu_inirp_init errors > staging: r8188eu: remove intf_stop pointer > > drivers/staging/r8188eu/hal/usb_halinit.c | 16 ++++++-------- > drivers/staging/r8188eu/hal/usb_ops_linux.c | 20 ++++++++--------- > drivers/staging/r8188eu/include/drv_types.h | 2 -- > drivers/staging/r8188eu/include/hal_intf.h | 2 +- > drivers/staging/r8188eu/include/rtw_io.h | 2 +- > drivers/staging/r8188eu/os_dep/os_intfs.c | 12 +++++------ > drivers/staging/r8188eu/os_dep/usb_intf.c | 24 +++------------------ > 7 files changed, 26 insertions(+), 52 deletions(-) > Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150