]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvmem: qnap-mcu-eeprom: Fix struct assignments using commas instead of semicolons
authorFelix Gu <ustc.gu@gmail.com>
Fri, 27 Mar 2026 13:17:44 +0000 (13:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 14:15:56 +0000 (16:15 +0200)
The nvcfg struct member assignments were incorrectly using commas instead
of semicolons.

Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://patch.msgid.link/20260327131751.3026030-3-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/qnap-mcu-eeprom.c

index 0b919895b3b2bb4e3eee01fcc33899313bb27ab0..07bdaa2a33fa2a7d9a5842fe09952c42c4a63d06 100644 (file)
@@ -86,10 +86,10 @@ static int qnap_mcu_eeprom_probe(struct platform_device *pdev)
        nvcfg.read_only = true;
        nvcfg.root_only = false;
        nvcfg.reg_read = qnap_mcu_eeprom_read;
-       nvcfg.size = QNAP_MCU_EEPROM_SIZE,
-       nvcfg.word_size = 1,
-       nvcfg.stride = 1,
-       nvcfg.priv = mcu,
+       nvcfg.size = QNAP_MCU_EEPROM_SIZE;
+       nvcfg.word_size = 1;
+       nvcfg.stride = 1;
+       nvcfg.priv = mcu;
 
        ndev = devm_nvmem_register(&pdev->dev, &nvcfg);
        if (IS_ERR(ndev))