From patchwork Sun May 20 08:15:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10413271 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 E5DF260353 for ; Sun, 20 May 2018 08:16:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D9E1328703 for ; Sun, 20 May 2018 08:16:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDA3C28714; Sun, 20 May 2018 08:16:37 +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 76D0D28703 for ; Sun, 20 May 2018 08:16:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752459AbeETIQg (ORCPT ); Sun, 20 May 2018 04:16:36 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:40811 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbeETIQB (ORCPT ); Sun, 20 May 2018 04:16:01 -0400 Received: by mail-wr0-f195.google.com with SMTP id v60-v6so13016433wrc.7 for ; Sun, 20 May 2018 01:16:00 -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; bh=cCyZQMCR0Xxj5hBh/vGgMaTM9l7jxVHU7Ob8/nQtmoI=; b=VlwuVORfOWmTmJTxAmsZkznKIBKeXnq6xkT7LTmYLvj+weZWgGgWDtp/pUr+c86tDy 3Vndn1FIjl3cNb/OIEQv+1Ntwh8QsEaUeJHMXyfljZ9Y45Frvl1zZh/GgihOvr8HdZbT sd9ybFpfAwA9HJKt9HScQbwu7r+ZdX0RyAJIGBH1JbhldXYC+Qgiiz0ZNFkRK1ty8Npj zBXLI1lGuyYGKLCxd9qc/BKOFpRvnduFjzj204i2jEdcFoA6WqDDwr9av0YiNBxzGHkD +Yur42e5xSQHrbrYDb3kgZGEbGRpqEbTHE68p80SjMO2kzYaS197s9lr+986BlAqcYmQ 6Rug== X-Gm-Message-State: ALKqPweAsSXirzmhCNkaRHs/stza/FJjdP7JXogHkmQWpx9LwXHsqNns 49yipPrDmOKPR2hk5tbpAM+GsqMfDS8= X-Google-Smtp-Source: AB8JxZpZIbQOaO+IjWJyfSqk10gYYGsC+rw8OOBYomGBrxsRp1UxPbZRc/G6LdyGWq6HPez9IY4bVA== X-Received: by 2002:adf:cc8c:: with SMTP id p12-v6mr11720417wrj.280.1526804159969; Sun, 20 May 2018 01:15:59 -0700 (PDT) Received: from localhost.localdomain ([151.66.25.157]) by smtp.gmail.com with ESMTPSA id z7-v6sm13981716wrg.56.2018.05.20.01.15.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 May 2018 01:15:59 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [RFC v2 16/18] mt76: move mt76x2_debugfs in mt76-common module Date: Sun, 20 May 2018 10:15:20 +0200 Message-Id: <20180520081522.10163-17-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.16.3 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);