Skip to content

Commit bddd8dd

Browse files
krzktorvalds
authored andcommitted
drivers/rtc/rtc-at91sam9.c: constify struct regmap_config
The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 46edeff commit bddd8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-at91sam9.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static const struct rtc_class_ops at91_rtc_ops = {
313313
.alarm_irq_enable = at91_rtc_alarm_irq_enable,
314314
};
315315

316-
static struct regmap_config gpbr_regmap_config = {
316+
static const struct regmap_config gpbr_regmap_config = {
317317
.reg_bits = 32,
318318
.val_bits = 32,
319319
.reg_stride = 4,

0 commit comments

Comments
 (0)