summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Monin <benoit.monin@bootlin.com>2025-11-26 11:46:26 +0100
committerAndi Shyti <andi.shyti@kernel.org>2025-12-17 00:37:15 +0100
commitea032b451134e5cc79ed1affc9a237ce5bdda9ed (patch)
treef9dae8b766d762dbaa04bc451a41f491e353b9ca
parent2b110445b1dfdef34ea7c42c27ddc2ba1bee5753 (diff)
downloadlinux-ea032b451134e5cc79ed1affc9a237ce5bdda9ed.tar.gz
linux-ea032b451134e5cc79ed1affc9a237ce5bdda9ed.zip
i2c: designware: Sort compatible strings in alphabetical order
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
-rw-r--r--drivers/i2c/busses/i2c-designware-platdrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-designware-platdrv.c b/drivers/i2c/busses/i2c-designware-platdrv.c
index 7be99656a67d..077b34535ec7 100644
--- a/drivers/i2c/busses/i2c-designware-platdrv.c
+++ b/drivers/i2c/busses/i2c-designware-platdrv.c
@@ -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);