mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
thermal/drivers/armada: Use bitfield and bitmask macros
Replace manual bitfield manipulations with FIELD_MODIFY() and define constants with BIT() and GENMASK() to make code more readable. Also, remove offset and shift constants for clarity in use of bitfield macros. Signed-off-by: Bryan B. Lima <bblima@usp.br> Co-developed-by: Gustavo S. Correa <gustavoscorrea@usp.br> Signed-off-by: Gustavo S. Correa <gustavoscorrea@usp.br> Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://patch.msgid.link/20260701010802.99029-1-bblima@usp.br
This commit is contained in:
parent
dd04ad1cda
commit
cbe31d5ce4
1 changed files with 44 additions and 56 deletions
Loading…
Add table
Add a link
Reference in a new issue