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

Configure Feed

Select the types of activity you want to include in your feed.

rtc: s3c: Put 'const' just after 'static' keyword for data

Convention is to define static data as 'static const ...', not 'static
... const' because of readability, even if the code is functionally
equal.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250707092200.48862-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Krzysztof Kozlowski and committed by
Alexandre Belloni
8b52144f 28964276

+4 -4
+4 -4
drivers/rtc/rtc-s3c.c
··· 549 549 writeb(mask, info->base + S3C2410_INTP); 550 550 } 551 551 552 - static struct s3c_rtc_data const s3c2410_rtc_data = { 552 + static const struct s3c_rtc_data s3c2410_rtc_data = { 553 553 .irq_handler = s3c24xx_rtc_irq, 554 554 .enable = s3c24xx_rtc_enable, 555 555 .disable = s3c24xx_rtc_disable, 556 556 }; 557 557 558 - static struct s3c_rtc_data const s3c2416_rtc_data = { 558 + static const struct s3c_rtc_data s3c2416_rtc_data = { 559 559 .irq_handler = s3c24xx_rtc_irq, 560 560 .enable = s3c24xx_rtc_enable, 561 561 .disable = s3c24xx_rtc_disable, 562 562 }; 563 563 564 - static struct s3c_rtc_data const s3c2443_rtc_data = { 564 + static const struct s3c_rtc_data s3c2443_rtc_data = { 565 565 .irq_handler = s3c24xx_rtc_irq, 566 566 .enable = s3c24xx_rtc_enable, 567 567 .disable = s3c24xx_rtc_disable, 568 568 }; 569 569 570 - static struct s3c_rtc_data const s3c6410_rtc_data = { 570 + static const struct s3c_rtc_data s3c6410_rtc_data = { 571 571 .needs_src_clk = true, 572 572 .irq_handler = s3c6410_rtc_irq, 573 573 .enable = s3c24xx_rtc_enable,