]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: dw: use FIELD_PREP for device address table macros
authorAdrian Ng Ho Yin <adrianhoyin.ng@altera.com>
Fri, 12 Dec 2025 09:02:57 +0000 (17:02 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 13 Jan 2026 17:26:47 +0000 (18:26 +0100)
commit4cd9d2bf0b56f98347ca1046e4d8acea95bd7ffa
tree03a21eeaab6f0b8a6e6c9c6a6ac622dc44636264
parentec17f14309481318df4af2a0c7f2aa7da9e7ebcb
i3c: dw: use FIELD_PREP for device address table macros

Add DEV_ADDR_TABLE_DYNAMIC_MASK / DEV_ADDR_TABLE_DYNAMIC_ADDR(x) for
dynamic device addresses and DEV_ADDR_TABLE_STATIC_MASK /
DEV_ADDR_TABLE_STATIC_ADDR(x) for static device addresses in the I3C
address table. Replace manual shift-and-mask with FIELD_PREP() for both
dynamic and static addresses for clarity and maintainability.

Signed-off-by: Adrian Ng Ho Yin <adrianhoyin.ng@altera.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/d72896e510db1870d26a794f131f600c7e42cf00.1765529948.git.adrianhoyin.ng@altera.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/dw-i3c-master.c