From patchwork Sun Jun 10 10:51:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10456627 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 BF07D60532 for ; Sun, 10 Jun 2018 10:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B09E72625B for ; Sun, 10 Jun 2018 10:52:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B7A26490; Sun, 10 Jun 2018 10:52:11 +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 5C60126861 for ; Sun, 10 Jun 2018 10:52:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932388AbeFJKwG (ORCPT ); Sun, 10 Jun 2018 06:52:06 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54155 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932365AbeFJKvy (ORCPT ); Sun, 10 Jun 2018 06:51:54 -0400 Received: by mail-wm0-f67.google.com with SMTP id x6-v6so9901627wmc.3 for ; Sun, 10 Jun 2018 03:51:54 -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=X/cffHYLUnhF4MGlxSyaVkWxToCS2HChc1UFfSbktOw=; b=JK8hwxJiCUX1rI+XT64YTwp4z1gzRSmy/IcubET7Th4ENOdk4XQyftm5HFus5h3bJZ Yy5Yam+0zXHspGSTyq4ZBBuTW+tt10VUweMldo2vs4BousUr3ASc24kALuT/USZfc5Mj 9Pw2ZzAyHO8uCsraJ5vo+7JT5ZW+HQGrjzgvpj/tiNTfKTArC9S92Qg+k5yj2WkfK5Rp YWSmAldgSA16/615b/4wWgInvTxCNf19ehxu42cUpA+awPM6GvTQsTBBMEOB/y7IVkfO xHDG0abnLjBlJ5gGAXlmVgvfeen+/uM7KuA5OFx+HKOTr5I+dEZY7ruM9ThpF6LDc53+ XlAA== X-Gm-Message-State: APt69E2veVpRvNwRmhNl9rsiHqvp7JT14jV8Wb9uUy/GmB+0pbZBZM3x HTemY5HceVpOiRfLmUNCraUcaQ== X-Google-Smtp-Source: ADUXVKLa9t296PxOI2gQbqHxruQnZKJLw0ukFS9LtifBFMDm04vs6dTfM2Rp0Z6r39qCcFUOn0djkQ== X-Received: by 2002:a1c:eccb:: with SMTP id h72-v6mr5336308wmi.157.1528627913477; Sun, 10 Jun 2018 03:51:53 -0700 (PDT) Received: from localhost.localdomain ([151.66.62.211]) by smtp.gmail.com with ESMTPSA id 194-v6sm8638793wml.20.2018.06.10.03.51.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Jun 2018 03:51:52 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [RFC v3 17/19] mt76: move mt76x2_debugfs in mt76-common module Date: Sun, 10 Jun 2018 12:51:24 +0200 Message-Id: <20180610105126.28425-18-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.17.1 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);