linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] improve mt76 led code readability
@ 2019-12-16 13:19 Lorenzo Bianconi
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Lorenzo Bianconi @ 2019-12-16 13:19 UTC (permalink / raw)
  To: nbd; +Cc: linux-wireless, lorenzo.bianconi

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-16 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-16 13:19 [PATCH v2 0/2] improve mt76 led code readability Lorenzo Bianconi
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

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).