Skip to content

Commit 8b52144

Browse files
krzkalexandrebelloni
authored andcommitted
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>
1 parent 2896427 commit 8b52144

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/rtc/rtc-s3c.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,25 +549,25 @@ static void s3c6410_rtc_irq(struct s3c_rtc *info, int mask)
549549
writeb(mask, info->base + S3C2410_INTP);
550550
}
551551

552-
static struct s3c_rtc_data const s3c2410_rtc_data = {
552+
static const struct s3c_rtc_data s3c2410_rtc_data = {
553553
.irq_handler = s3c24xx_rtc_irq,
554554
.enable = s3c24xx_rtc_enable,
555555
.disable = s3c24xx_rtc_disable,
556556
};
557557

558-
static struct s3c_rtc_data const s3c2416_rtc_data = {
558+
static const struct s3c_rtc_data s3c2416_rtc_data = {
559559
.irq_handler = s3c24xx_rtc_irq,
560560
.enable = s3c24xx_rtc_enable,
561561
.disable = s3c24xx_rtc_disable,
562562
};
563563

564-
static struct s3c_rtc_data const s3c2443_rtc_data = {
564+
static const struct s3c_rtc_data s3c2443_rtc_data = {
565565
.irq_handler = s3c24xx_rtc_irq,
566566
.enable = s3c24xx_rtc_enable,
567567
.disable = s3c24xx_rtc_disable,
568568
};
569569

570-
static struct s3c_rtc_data const s3c6410_rtc_data = {
570+
static const struct s3c_rtc_data s3c6410_rtc_data = {
571571
.needs_src_clk = true,
572572
.irq_handler = s3c6410_rtc_irq,
573573
.enable = s3c24xx_rtc_enable,

0 commit comments

Comments
 (0)