linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: nbd@nbd.name
Cc: linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com
Subject: [PATCH v2 0/2] improve mt76 led code readability
Date: Mon, 16 Dec 2019 14:19:57 +0100	[thread overview]
Message-ID: <cover.1576502217.git.lorenzo@kernel.org> (raw)

Improve code readability relying on FIELD_PREP macro for led register
definitions and remove open coding

Changes since v1:
- remove _MASK suffix from register definitions and move the
  code in *_init.c

Lorenzo Bianconi (2):
  mt76: mt76x02: simplify led reg definitions
  mt76: mt7603: simplify led reg definitions

 drivers/net/wireless/mediatek/mt76/mt7603/init.c  |  6 +++---
 drivers/net/wireless/mediatek/mt76/mt7603/regs.h  | 15 +++------------
 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h | 12 +++---------
 drivers/net/wireless/mediatek/mt76/mt76x02_util.c |  6 +++---
 4 files changed, 12 insertions(+), 27 deletions(-)

-- 
2.21.0


             reply	other threads:[~2019-12-16 13:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-16 13:19 Lorenzo Bianconi [this message]
2019-12-16 13:19 ` [PATCH v2 1/2] mt76: mt76x02: simplify led reg definitions Lorenzo Bianconi
2019-12-16 13:19 ` [PATCH v2 2/2] mt76: mt7603: " Lorenzo Bianconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1576502217.git.lorenzo@kernel.org \
    --to=lorenzo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=lorenzo.bianconi@redhat.com \
    --cc=nbd@nbd.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).