]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
i2c: designware: Sort compatible strings in alphabetical order
authorBenoît Monin <benoit.monin@bootlin.com>
Wed, 26 Nov 2025 10:46:26 +0000 (11:46 +0100)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 16 Dec 2025 23:37:15 +0000 (00:37 +0100)
Reorder the of_device_id structures so that they are in alphabetical
order. Also drop the unneeded inner trailing comma in the
"snps,designware-i2c" struct.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20251126-i2c-dw-v4-3-b0654598e7c5@bootlin.com
drivers/i2c/busses/i2c-designware-platdrv.c

index 7be99656a67db45334eccb2e3bd53ab3dc9b059b..077b34535ec7844653a9b385a3cc21d4dbe5cf26 100644 (file)
@@ -334,9 +334,9 @@ static void dw_i2c_plat_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id dw_i2c_of_match[] = {
-       { .compatible = "snps,designware-i2c", },
-       { .compatible = "mscc,ocelot-i2c", .data = (void *)MODEL_MSCC_OCELOT },
        { .compatible = "baikal,bt1-sys-i2c", .data = (void *)MODEL_BAIKAL_BT1 },
+       { .compatible = "mscc,ocelot-i2c", .data = (void *)MODEL_MSCC_OCELOT },
+       { .compatible = "snps,designware-i2c" },
        {}
 };
 MODULE_DEVICE_TABLE(of, dw_i2c_of_match);