rtc: pcf2127: add missing semicolon after statement
commit 08d82d0cad51c2b1d454fe41ea1ff96ade676961 upstream.
Replace comma with semicolon at the end of the statement when setting
config.max_register.
Fixes: fd28ceb460
("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a5df3a702b
commit
1cb814dbb0
@@ -1456,7 +1456,7 @@ static int pcf2127_spi_probe(struct spi_device *spi)
|
|||||||
variant = &pcf21xx_cfg[type];
|
variant = &pcf21xx_cfg[type];
|
||||||
}
|
}
|
||||||
|
|
||||||
config.max_register = variant->max_register,
|
config.max_register = variant->max_register;
|
||||||
|
|
||||||
regmap = devm_regmap_init_spi(spi, &config);
|
regmap = devm_regmap_init_spi(spi, &config);
|
||||||
if (IS_ERR(regmap)) {
|
if (IS_ERR(regmap)) {
|
||||||
|
Reference in New Issue
Block a user