Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] pinctrl: Use FIELD_MODIFY() to simplify bit manipulation
@ 2026-04-30 17:01 Hans Zhang
  2026-04-30 17:01 ` [PATCH 1/2] pinctrl: sophgo: Use FIELD_MODIFY() Hans Zhang
  2026-04-30 17:01 ` [PATCH 2/2] pinctrl: spacemit: " Hans Zhang
  0 siblings, 2 replies; 3+ messages in thread
From: Hans Zhang @ 2026-04-30 17:01 UTC (permalink / raw)
  To: linusw, unicorn_wang, inochiama, dlan
  Cc: linux-gpio, linux-kernel, Hans Zhang

This series replaces open-coded bitfield clear-and-set sequences with the
FIELD_MODIFY() macro in two pinctrl drivers. No functional change is
intended. The resulting code is shorter and easier to read, and it avoids
potential mistakes when adjusting bitmask definitions in the future.

---
Hi, If the Maintainers think it's not necessary, please ignore it.
---

Hans Zhang (2):
  pinctrl: sophgo: Use FIELD_MODIFY()
  pinctrl: spacemit: Use FIELD_MODIFY()

 drivers/pinctrl/sophgo/pinctrl-cv18xx.c | 18 ++++++------------
 drivers/pinctrl/spacemit/pinctrl-k1.c   |  3 +--
 2 files changed, 7 insertions(+), 14 deletions(-)


base-commit: 3b3bea6d4b9c162f9e555905d96b8c1da67ecd5b
-- 
2.34.1


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

end of thread, other threads:[~2026-04-30 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-30 17:01 [PATCH 0/2] pinctrl: Use FIELD_MODIFY() to simplify bit manipulation Hans Zhang
2026-04-30 17:01 ` [PATCH 1/2] pinctrl: sophgo: Use FIELD_MODIFY() Hans Zhang
2026-04-30 17:01 ` [PATCH 2/2] pinctrl: spacemit: " Hans Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox