Skip to content

Commit 1ef2816

Browse files
krzktorvalds
authored andcommitted
drivers/rtc/rtc-isl12057.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 bddd8dd commit 1ef2816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-isl12057.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static const struct rtc_class_ops rtc_ops = {
535535
.alarm_irq_enable = isl12057_rtc_alarm_irq_enable,
536536
};
537537

538-
static struct regmap_config isl12057_rtc_regmap_config = {
538+
static const struct regmap_config isl12057_rtc_regmap_config = {
539539
.reg_bits = 8,
540540
.val_bits = 8,
541541
};

0 commit comments

Comments
 (0)