]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtc: pcf2127: add missing semicolon after statement
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Thu, 29 May 2025 20:29:22 +0000 (16:29 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 24 Jun 2025 14:06:14 +0000 (16:06 +0200)
Replace comma with semicolon at the end of the statement when setting
config.max_register.

Fixes: fd28ceb4603f ("rtc: pcf2127: add variant-specific configuration structure")
Cc: stable@vger.kernel.org
Cc: Elena Popa <elena.popa@nxp.com>
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20250529202923.1552560-1-hugo@hugovil.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pcf2127.c

index 2c7917bc2a31edd298e2fed93596747b7e93e43f..2e1ac0c42e9323dbc6793840a265e8a663e52568 100644 (file)
@@ -1543,7 +1543,7 @@ static int pcf2127_spi_probe(struct spi_device *spi)
                config.write_flag_mask = 0x0;
        }
 
-       config.max_register = variant->max_register,
+       config.max_register = variant->max_register;
 
        regmap = devm_regmap_init_spi(spi, &config);
        if (IS_ERR(regmap)) {