From patchwork Sun Jul 1 14:12:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10498703 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 9392F60284 for ; Sun, 1 Jul 2018 14:13:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8426828A37 for ; Sun, 1 Jul 2018 14:13:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75E5A28A3D; Sun, 1 Jul 2018 14:13:36 +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 28210288A2 for ; Sun, 1 Jul 2018 14:13:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752528AbeGAONe (ORCPT ); Sun, 1 Jul 2018 10:13:34 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:52143 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbeGAON1 (ORCPT ); Sun, 1 Jul 2018 10:13:27 -0400 Received: by mail-wm0-f41.google.com with SMTP id w137-v6so6475279wmw.1 for ; Sun, 01 Jul 2018 07:13:25 -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=eRk+db5lj02HoA9lgAt6MZy2qZzP04wYluYPYfMnzCc=; b=lS1tCKU+QM4nenIH+iKi1nGXIrzye49iIFIGTlqjxJJy5F0Q4a8ThzZ65oZqVeGE1X suU/yg0XzmhFH6chylRVTSGAPlpJi4efsE0gsZZTAzaxdG74Xqn4YWYlVSYVYAal7cbg EERrUr0PavuioEJEv9Ac61V2avlcDeS0ViA9TO/Ll0wYEWlQ/a/lpVeokF2Hn6DVcnal 9XItLgnWx1avERBzI5mJNG08w78je3dp06+OLuA9fVPnVzp4rwsu8w30xDZuGpuC69bs KfL4f1N1swGQTJKUqpz2cIzD0oMqjY83FbpQAw6MBh6c7bstPP1CeeIDHQqVhlcJWxau z6og== X-Gm-Message-State: APt69E1/dBi/z/lbKZziuNgqCRCrZYx55iyZ5heq+aWWTC+HvzGAFh4D I/pqJu/wigyqiY2JSbEtRSJdNw== X-Google-Smtp-Source: AAOMgpeeiQsMXgz6bOl6XPi0xIqAVDmV5c2Xz9eL5dJ+tPm9NTekJrc3N0VkdEqONUq3gCVUq2auDg== X-Received: by 2002:a1c:a103:: with SMTP id k3-v6mr6192333wme.161.1530454404768; Sun, 01 Jul 2018 07:13:24 -0700 (PDT) Received: from localhost.localdomain ([151.66.11.238]) by smtp.gmail.com with ESMTPSA id 72-v6sm6363957wmo.26.2018.07.01.07.13.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Jul 2018 07:13:23 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, sgruszka@redhat.com Subject: [PATCH 17/19] mt76: move mt76x2_debugfs in mt76-common module Date: Sun, 1 Jul 2018 16:12:29 +0200 Message-Id: <20180701141231.25323-18-lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.18.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 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 3f86e01049f3..8643080d4ab8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x2_debugfs.c @@ -145,3 +145,4 @@ void mt76x2_init_debugfs(struct mt76x2_dev *dev) debugfs_create_devm_seqfile(dev->mt76.dev, "agc", dir, read_agc); } +EXPORT_SYMBOL_GPL(mt76x2_init_debugfs);