From patchwork Sun Oct 14 16:55:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10640747 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 ED0B2112B for ; Sun, 14 Oct 2018 16:55:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E296D29195 for ; Sun, 14 Oct 2018 16:55:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFB092919A; Sun, 14 Oct 2018 16:55:31 +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 2EE2B29195 for ; Sun, 14 Oct 2018 16:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726417AbeJOAhG (ORCPT ); Sun, 14 Oct 2018 20:37:06 -0400 Received: from mail-wr1-f54.google.com ([209.85.221.54]:35282 "EHLO mail-wr1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726327AbeJOAhG (ORCPT ); Sun, 14 Oct 2018 20:37:06 -0400 Received: by mail-wr1-f54.google.com with SMTP id w5-v6so18535612wrt.2 for ; Sun, 14 Oct 2018 09:55:27 -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:mime-version :content-transfer-encoding; bh=7zRNh92uB0CFP/y2irYCAQBvptRJ06ZCvyhdc1QC3nQ=; b=b6DoYCDyY8CW6eR7fFqmPfh8s4Tr2oigFgATC7tynS31QIQPUR0ijvWhMOAKI9qHSp 4Y2aSccTdntgH6KcSrq526W2M+rkTcRG05XzaiB9Yul/rsdlxs0w2dXbW0VhgojuKgXY fj2NfLSSVHJ//FPqws+seaj6MTtQhDagx5MtDS8JK2Touo04oHyfablZg5b570wq3tgW sFVmrMFfFW6yw2YC00RN4WBz5D8GOGbnTz63wO8Pabfyvy/PcLaDVzfO9l3z1n6FqVXf DobYZZFWONstG5cTJUoYBsYKMKigFjZMMg1BPm5ajehoAbCcXOuPAeglzbtFBlqT6yy9 Y0wQ== X-Gm-Message-State: ABuFfoix5zQnM7SPKBYJ7oXQ4XykWaGxwY7QtrSlI5Pnl8POUYCGfM8N LHQu1G5EJsgg522hIWbac+nx7Q== X-Google-Smtp-Source: ACcGV63HWG1ZtFSFzRvo+UFBy0T+I6dHAvYon6ZKKeFFvmbAxPKr+JSJpdt9iiu5ZSKpw5ueUjyZ8Q== X-Received: by 2002:adf:c88b:: with SMTP id k11-v6mr11722007wrh.6.1539536126750; Sun, 14 Oct 2018 09:55:26 -0700 (PDT) Received: from localhost.localdomain ([151.66.57.235]) by smtp.gmail.com with ESMTPSA id k25-v6sm16068279wre.18.2018.10.14.09.55.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Oct 2018 09:55:26 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: sgruszka@redhat.com, linux-wireless@vger.kernel.org Subject: [PATCH 0/3] mt76x0: simplify rf configuration routines Date: Sun, 14 Oct 2018 18:55:17 +0200 Message-Id: X-Mailer: git-send-email 2.19.0 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 Simplify rf configuration using mt76x0_rf_wr, mt76x0_rf_set and mt76x0_rf_clear routines. Moreover use mt76x0_phy as prefix for phy routines Lorenzo Bianconi (3): mt76x0: phy: use proper name convention mt76x0: phy: simplify rf configuration routines mt76x0: phy: improve code readability in initvals_phy.h .../net/wireless/mediatek/mt76/mt76x0/init.c | 2 +- .../mediatek/mt76/mt76x0/initvals_phy.h | 1313 ++++++++--------- .../wireless/mediatek/mt76/mt76x0/mt76x0.h | 2 +- .../net/wireless/mediatek/mt76/mt76x0/phy.c | 375 ++--- .../net/wireless/mediatek/mt76/mt76x0/phy.h | 17 + 5 files changed, 770 insertions(+), 939 deletions(-)