From: Hans Zhang <18255117159@163.com>
To: linusw@kernel.org, unicorn_wang@outlook.com, inochiama@gmail.com,
dlan@kernel.org
Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
Hans Zhang <18255117159@163.com>
Subject: [PATCH 0/2] pinctrl: Use FIELD_MODIFY() to simplify bit manipulation
Date: Fri, 1 May 2026 01:01:02 +0800 [thread overview]
Message-ID: <20260430170104.53854-1-18255117159@163.com> (raw)
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
next reply other threads:[~2026-04-30 17:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-30 17:01 Hans Zhang [this message]
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
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=20260430170104.53854-1-18255117159@163.com \
--to=18255117159@163.com \
--cc=dlan@kernel.org \
--cc=inochiama@gmail.com \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=unicorn_wang@outlook.com \
/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