i2c: don't use ',' after delimiters
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 30 Jul 2024 22:01:59 +0000 (00:01 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 9 Sep 2024 22:33:52 +0000 (00:33 +0200)
Delimiters are meant to be last, no need for a ',' there. Remove a
superfluous newline in the ali1535 driver while here.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
14 files changed:
drivers/i2c/busses/i2c-ali1535.c
drivers/i2c/busses/i2c-amd-mp2-plat.c
drivers/i2c/busses/i2c-aspeed.c
drivers/i2c/busses/i2c-digicolor.c
drivers/i2c/busses/i2c-imx-lpi2c.c
drivers/i2c/busses/i2c-omap.c
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/busses/i2c-pnx.c
drivers/i2c/busses/i2c-pxa-pci.c
drivers/i2c/busses/i2c-pxa.c
drivers/i2c/busses/i2c-qcom-geni.c
drivers/i2c/busses/i2c-qup.c
drivers/i2c/busses/i2c-s3c2410.c
drivers/i2c/i2c-core-base.c

index 9d7b4efe26ad01b8edfcbc3bd4e8aa30d0670a38..544c94e86b8967b082dcf3eee966ea0946a96593 100644 (file)
@@ -479,9 +479,8 @@ static struct i2c_adapter ali1535_adapter = {
 
 static const struct pci_device_id ali1535_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M7101) },
-       { },
+       { }
 };
-
 MODULE_DEVICE_TABLE(pci, ali1535_ids);
 
 static int ali1535_probe(struct pci_dev *dev, const struct pci_device_id *id)
index d3ac1c77a5098d730e3397a8ce5a0518f9adb050..6f0ef587e76d1458b51276d86ec1af1815e0385b 100644 (file)
@@ -340,7 +340,7 @@ static void i2c_amd_remove(struct platform_device *pdev)
 
 static const struct acpi_device_id i2c_amd_acpi_match[] = {
        { "AMDI0011" },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(acpi, i2c_amd_acpi_match);
 
index ce8c4846b7fae4548e36ccd78ce59ce1c90532f3..f411576a024ce82db90b3738818fb15182a7e58f 100644 (file)
@@ -991,7 +991,7 @@ static const struct of_device_id aspeed_i2c_bus_of_table[] = {
                .compatible = "aspeed,ast2600-i2c-bus",
                .data = aspeed_i2c_25xx_get_clk_reg_val,
        },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(of, aspeed_i2c_bus_of_table);
 
index 3e6b80e59b90633623dad9c32e7319b55ca49a68..3dc5a46698fc953c71dc12f661cc069acbb616f1 100644 (file)
@@ -357,7 +357,7 @@ static void dc_i2c_remove(struct platform_device *pdev)
 
 static const struct of_device_id dc_i2c_match[] = {
        { .compatible = "cnxt,cx92755-i2c" },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(of, dc_i2c_match);
 
index 0197786892a2427b55900da033bbc48f74a0f223..976d43f73f3830e30c6353836a3e35f6240791e1 100644 (file)
@@ -559,7 +559,7 @@ static const struct i2c_algorithm lpi2c_imx_algo = {
 
 static const struct of_device_id lpi2c_imx_of_match[] = {
        { .compatible = "fsl,imx7ulp-lpi2c" },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(of, lpi2c_imx_of_match);
 
index 35a3f0a64986455932f9029c93dd810ab3d71f0b..1d9ad25c89ae5586eba7afb5f6f7c477215c0b90 100644 (file)
@@ -1261,7 +1261,7 @@ static const struct of_device_id omap_i2c_of_match[] = {
                .compatible = "ti,omap2420-i2c",
                .data = &omap2420_pdata,
        },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(of, omap_i2c_of_match);
 #endif
index 4e32d57ae0bf370c7d25cf969948e3e49184f0c4..febbd9950d8f895f088d2beb7258ff411935181f 100644 (file)
@@ -146,7 +146,7 @@ static const struct dmi_system_id piix4_dmi_ibm[] = {
                .ident = "IBM",
                .matches = { DMI_MATCH(DMI_SYS_VENDOR, "IBM"), },
        },
-       { },
+       { }
 };
 
 /*
index f448505d54682779fd8269415512512424a25d34..1dafadda73af3ac596e9ba680b113a8764c9c778 100644 (file)
@@ -721,7 +721,7 @@ static void i2c_pnx_remove(struct platform_device *pdev)
 #ifdef CONFIG_OF
 static const struct of_device_id i2c_pnx_of_match[] = {
        { .compatible = "nxp,pnx-i2c" },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(of, i2c_pnx_of_match);
 #endif
index 6b3c6a73336823cf5006b9c7789d74d630c005a0..af2094720a4dc3b6c4bc08a75f56cfd92a9e1524 100644 (file)
@@ -135,7 +135,7 @@ err_dev_add:
 
 static const struct pci_device_id ce4100_i2c_devices[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2e68)},
-       { },
+       { }
 };
 
 static struct pci_driver ce4100_i2c_driver = {
index 031175113dd41240aa455d0d1e24453b240cfd00..4d76e71cdd4be1c06dcf78c7c6813454d08cedf8 100644 (file)
@@ -218,7 +218,7 @@ static const struct platform_device_id i2c_pxa_id_table[] = {
        { "ce4100-i2c",         REGS_CE4100 },
        { "pxa910-i2c",         REGS_PXA910 },
        { "armada-3700-i2c",    REGS_A3700  },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(platform, i2c_pxa_id_table);
 
index 06e836e3e877339233d5c514c63e8b66c09000ba..2ca785410547fe9e2c1edd387c22a2b191c22218 100644 (file)
@@ -721,7 +721,7 @@ static const struct i2c_algorithm geni_i2c_algo = {
 static const struct acpi_device_id geni_i2c_acpi_match[] = {
        { "QCOM0220"},
        { "QCOM0411" },
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(acpi, geni_i2c_acpi_match);
 #endif
index 4a2c745751a234718903282fd5202a4309b0f95b..d480162a4d3941042cb59eb69aec0e816276761a 100644 (file)
@@ -1648,7 +1648,7 @@ static void qup_i2c_disable_clocks(struct qup_i2c_dev *qup)
 
 static const struct acpi_device_id qup_i2c_acpi_match[] = {
        { "QCOM8010"},
-       { },
+       { }
 };
 MODULE_DEVICE_TABLE(acpi, qup_i2c_acpi_match);
 
index 01419c738cfc4f727dddba0d3d53284042e80d83..7698d9d59744831b6ba9fb1f9a550ffb7e99b631 100644 (file)
@@ -130,7 +130,7 @@ static const struct platform_device_id s3c24xx_driver_ids[] = {
        }, {
                .name           = "s3c2440-hdmiphy-i2c",
                .driver_data    = QUIRK_S3C2440 | QUIRK_HDMIPHY | QUIRK_NO_GPIO,
-       }, { },
+       }, { }
 };
 MODULE_DEVICE_TABLE(platform, s3c24xx_driver_ids);
 
index b63f75e442964b7d72d3a98d69c09f774990e322..6cf57e32119c3ee6255f71fdb17e47760cbba54e 100644 (file)
@@ -1068,7 +1068,7 @@ EXPORT_SYMBOL(i2c_find_device_by_fwnode);
 static const struct i2c_device_id dummy_id[] = {
        { "dummy", },
        { "smbus_host_notify", },
-       { },
+       { }
 };
 
 static int dummy_probe(struct i2c_client *client)