Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <k.kozlowski@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Krzysztof Kozlowski and committed by
Linus Torvalds
1ef2816f bddd8ddd

+1 -1
+1 -1
drivers/rtc/rtc-isl12057.c
··· 535 535 .alarm_irq_enable = isl12057_rtc_alarm_irq_enable, 536 536 }; 537 537 538 - static struct regmap_config isl12057_rtc_regmap_config = { 538 + static const struct regmap_config isl12057_rtc_regmap_config = { 539 539 .reg_bits = 8, 540 540 .val_bits = 8, 541 541 };