mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
regmap: kunit: Constify regmap_range_cfg array
Static 'struct regmap_range_cfg' array is not modified so can be changed to const for more safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://patch.msgid.link/20250528194501.567366-2-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
19272b37aa
commit
c8c4694ede
@@ -736,7 +736,7 @@ static void stride(struct kunit *test)
|
||||
}
|
||||
}
|
||||
|
||||
static struct regmap_range_cfg test_range = {
|
||||
static const struct regmap_range_cfg test_range = {
|
||||
.selector_reg = 1,
|
||||
.selector_mask = 0xff,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user