]> git.ipfire.org Git - thirdparty/linux.git/commit
regmap: i3c: Use ARRAY_SIZE()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Nov 2025 18:09:46 +0000 (19:09 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 4 Nov 2025 13:53:38 +0000 (13:53 +0000)
commitaf9c8092d84244ca54ffb590435735f788e7a170
tree7f44ad59c6b48cddc99e829be5e819eda94a286c
parented5d499b5c9cc11dd3edae1a7a55db7dfa4f1bdc
regmap: i3c: Use ARRAY_SIZE()

Use ARRAY_SIZE() instead of hard coded numbers to show the intention
and make code robust against potential changes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20251103180946.604127-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-i3c.c