Skip to content

Commit fd12737

Browse files
krzkbebarino
authored andcommitted
clk: versaclock7: 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://lore.kernel.org/r/20250528194453.567324-2-krzysztof.kozlowski@linaro.org Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 742014a commit fd12737

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/clk-versaclock7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ static const struct vc7_chip_info vc7_rc21008a_info = {
12571257
.num_outputs = 8,
12581258
};
12591259

1260-
static struct regmap_range_cfg vc7_range_cfg[] = {
1260+
static const struct regmap_range_cfg vc7_range_cfg[] = {
12611261
{
12621262
.range_min = 0,
12631263
.range_max = VC7_MAX_REG,

0 commit comments

Comments
 (0)