From patchwork Mon Apr 30 14:12:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10371871 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 167D26038F for ; Mon, 30 Apr 2018 14:13:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08398200E7 for ; Mon, 30 Apr 2018 14:13:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0E0528798; Mon, 30 Apr 2018 14:13:24 +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 9EE1E200E7 for ; Mon, 30 Apr 2018 14:13:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754331AbeD3ONX (ORCPT ); Mon, 30 Apr 2018 10:13:23 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:51613 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754165AbeD3ONM (ORCPT ); Mon, 30 Apr 2018 10:13:12 -0400 Received: by mail-wm0-f65.google.com with SMTP id j4so13439807wme.1 for ; Mon, 30 Apr 2018 07:13:12 -0700 (PDT) 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:in-reply-to :references; bh=VrzshKYh7DzMVI6k48RWiwu7Y7h33HkEDLxcCArDK2I=; b=TvjRYcSaqZyjfYgqKKzV90+sVkoDiMVJvhzEsI6kfLR58LuTd+/i15GIwZtE7NRufw dZ72VxOiLzV9f6NchkPfBxdcrgTm5oZmVav9JHRjQey4Aw8kIzNGmF+rSP+pHUTzl/rf 2+gB99KrSZ/9bKb6Oa3TgxWmyYh18jskHlxXtT/bMndYFw7wFJiYTT8vPqvtab7PU1Wh a7AbtVm3IlYIZhslVweK9ZrbyFm9M4NDAaIT0eMhws/XeBSwLQ4JYvPYokv9IyrAtvze PIREqtaTH2yM1/qpBOnsqTXOpDuyvnvW4aA+JXqv8yyrFVma2XxMxfteyIfDn2D4reZr oQYg== X-Gm-Message-State: ALQs6tAXYQ+yilhnN8n3sLtBAHZfsB0t7q+0LrXTBWU+Qay9TrYQ2OCo SLZ+PW/KFthi1ywn+YuSzOjoMA== X-Google-Smtp-Source: AB8JxZrRP4caK0jKSzgx/K0CMk7qhoLQhH6TtPJrEwcwQiKuUMoy0MzA+MfYUYC9J4NsSBZ8tn0m7g== X-Received: by 10.28.216.13 with SMTP id p13mr7214399wmg.32.1525097591535; Mon, 30 Apr 2018 07:13:11 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id f83sm10207105wmh.32.2018.04.30.07.13.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:13:11 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [RFC 16/18] mt76: move mt76x2_debugfs in mt76-common module Date: Mon, 30 Apr 2018 16:12:31 +0200 Message-Id: <5ca18290fe0cc8aa9527d8ec204c30f934c83743.1525096206.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: References: 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 mt76x2_debugfs code in mt76-common module since it is shared between mt76x2 and mt76x2u Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Makefile | 5 +++-- drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/Makefile b/drivers/net/wireless/mediatek/mt76/Makefile index 5a9f34b14ee4..e1bc229e4aad 100644 --- a/drivers/net/wireless/mediatek/mt76/Makefile +++ b/drivers/net/wireless/mediatek/mt76/Makefile @@ -9,11 +9,12 @@ CFLAGS_trace.o := -I$(src) mt76x2-common-y := \ mt76x2_eeprom.o mt76x2_tx_common.o mt76x2_mac_common.o \ - mt76x2_init_common.o mt76x2_common.o mt76x2_phy_common.o + mt76x2_init_common.o mt76x2_common.o mt76x2_phy_common.o \ + mt76x2_debugfs.o mt76x2e-y := \ mt76x2_pci.o mt76x2_dma.o \ - mt76x2_main.o mt76x2_init.o mt76x2_debugfs.o mt76x2_tx.o \ + mt76x2_main.o mt76x2_init.o mt76x2_tx.o \ mt76x2_core.o mt76x2_mac.o mt76x2_mcu.o mt76x2_phy.o \ mt76x2_dfs.o mt76x2_trace.o diff --git a/drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c b/drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c index 955ea3e692dd..9613fe5f0d12 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c @@ -131,3 +131,4 @@ void mt76x2_init_debugfs(struct mt76x2_dev *dev) debugfs_create_devm_seqfile(dev->mt76.dev, "txpower", dir, read_txpower); } +EXPORT_SYMBOL_GPL(mt76x2_init_debugfs);