i3c: master: Replace hard code 2 with macro I3C_ADDR_SLOT_STATUS_BITS
authorFrank Li <Frank.Li@nxp.com>
Mon, 21 Oct 2024 15:45:06 +0000 (11:45 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 31 Oct 2024 22:51:00 +0000 (23:51 +0100)
commit16aed0a6520ba01b7d22c32e193fc1ec674f92d4
tree032eeba90e44389a0135f0bb8aa898b093ba12f5
parent9852d85ec9d492ebef56dc5f229416c925758edc
i3c: master: Replace hard code 2 with macro I3C_ADDR_SLOT_STATUS_BITS

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: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20241021-i3c_dts_assign-v8-1-4098b8bde01e@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c
include/linux/i3c/master.h