Skip to content
Snippets Groups Projects
Commit 1c47272e authored by Frank Li's avatar Frank Li Committed by Greg Kroah-Hartman
Browse files

i3c: master: Replace hard code 2 with macro I3C_ADDR_SLOT_STATUS_BITS


[ Upstream commit 16aed0a6 ]

Replace the hardcoded value 2, which indicates 2 bits for I3C address
status, with the predefined macro I3C_ADDR_SLOT_STATUS_BITS.

Improve maintainability and extensibility of the code.

Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarFrank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20241021-i3c_dts_assign-v8-1-4098b8bde01e@nxp.com


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Stable-dep-of: 851bd21c ("i3c: master: Fix dynamic address leak when 'assigned-address' is present")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3aecd6fd
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment