From patchwork Thu Jan 31 16:55:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10790977 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7CA261390 for ; Thu, 31 Jan 2019 16:56:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7106130DE0 for ; Thu, 31 Jan 2019 16:56:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6557530DE4; Thu, 31 Jan 2019 16:56:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B55630DE0 for ; Thu, 31 Jan 2019 16:56:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388737AbfAaQ4L (ORCPT ); Thu, 31 Jan 2019 11:56:11 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:56107 "EHLO mail-wm1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727095AbfAaQ4K (ORCPT ); Thu, 31 Jan 2019 11:56:10 -0500 Received: by mail-wm1-f50.google.com with SMTP id y139so3224526wmc.5 for ; Thu, 31 Jan 2019 08:56:09 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=4ft1KNwXOarlnLGCKv0krsIGkFfqPexFHilDx93edfE=; b=Np6hpn4QQoCwn4+clT50CNVVHj+9qJyQx8VpPQ90DEysU+cdOxq3/K5A1EtssKo8Pl qM9dZ9OfCAr5ULU4XoEYMvPH56FsMH2VCIBX4G7+FjpZSiaiaWAanL7eHjv4bM5bSgyN eFm6Fa+FVfGpSRIruTvBinpiq2slmsqiZXX6BmJY9ZIS4K1RrTWh+/AA6QnN25Dq5QdF 1qA+AwuoJ5Prpvz+ebImCzArpkx+3DHaozTSOT+4KFLPu9YPfG04eom2uD/v8OpiCL7E 0F5nlQGXLQ+1/WGxnx/CjeLsJSHYgKF3Gb3b6DjsUdW5DzxNGGkZ5LrtTFQTv0UDKbd5 RW/w== X-Gm-Message-State: AJcUukeDFw9fkRouvEpG1my1afBP9lavl15m3NU7G0o/3gxPffYEHjhr dTGFm7SSoavVIFhKfTsAPKcdqgQQOkc= X-Google-Smtp-Source: ALg8bN6NN9eyqu5ZPO0+QwzyG6S0mAaTsXxC6dfFV7ECqBcpqcblQAsVnekfWZ2VIGlEUeDfZWNIlg== X-Received: by 2002:a1c:dc02:: with SMTP id t2mr29515260wmg.78.1548953768508; Thu, 31 Jan 2019 08:56:08 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id k128sm9502889wmd.37.2019.01.31.08.56.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 31 Jan 2019 08:56:07 -0800 (PST) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [PATCH 0/4] mt76x{0,2}: move alloc_device common code in mt76_common module Date: Thu, 31 Jan 2019 17:55:53 +0100 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move mt76x{0,2} alloc_device common code in mt76_alloc_device and remove duplicated code Lorenzo Bianconi (4): mt76: move alloc_device common code in mt76_alloc_device mt76x2u: remove mt76x2u_alloc_device routine mt76x0: remove mt76x0u_alloc_device routine mt76x2: remove mt76x2_alloc_device routine drivers/net/wireless/mediatek/mt76/mac80211.c | 7 ++++- drivers/net/wireless/mediatek/mt76/mt76.h | 5 ++-- .../net/wireless/mediatek/mt76/mt76x0/init.c | 22 --------------- .../wireless/mediatek/mt76/mt76x0/mt76x0.h | 4 --- .../net/wireless/mediatek/mt76/mt76x0/pci.c | 17 +++++++----- .../net/wireless/mediatek/mt76/mt76x0/usb.c | 22 ++++++++------- .../wireless/mediatek/mt76/mt76x2/mt76x2.h | 1 - .../wireless/mediatek/mt76/mt76x2/mt76x2u.h | 1 - .../net/wireless/mediatek/mt76/mt76x2/pci.c | 26 +++++++++++++----- .../wireless/mediatek/mt76/mt76x2/pci_init.c | 27 ------------------- .../net/wireless/mediatek/mt76/mt76x2/usb.c | 24 ++++++++++++----- .../wireless/mediatek/mt76/mt76x2/usb_init.c | 24 ----------------- 12 files changed, 71 insertions(+), 109 deletions(-)