From 04c183c542ad727afa946dc879a1b76785573548 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Tue, 8 Oct 2024 09:54:27 +0200 Subject: [PATCH] net: ksz9477: rename udevice_id tab to ksz_ids The DSA KSZ devicetree binding doesn't specify anything about the underlying bus between the SoC and the DSA switch, so the same "compatible" string can be used wathever the management interface used. The driver must be able to access the underlying bus without any help from the compatible string (like for TPM2 TIS devices). So, rename udevice_id tab to ksz_ids since it's not specific to i2c bus. Signed-off-by: Romain Naour --- drivers/net/ksz9477.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ksz9477.c b/drivers/net/ksz9477.c index c8c6595d4a..3756f48c9b 100644 --- a/drivers/net/ksz9477.c +++ b/drivers/net/ksz9477.c @@ -574,7 +574,7 @@ static int ksz_i2c_probe(struct udevice *dev) return 0; }; -static const struct udevice_id ksz_i2c_ids[] = { +static const struct udevice_id ksz_ids[] = { { .compatible = "microchip,ksz9897" }, { .compatible = "microchip,ksz9477" }, { .compatible = "microchip,ksz9567" }, @@ -586,7 +586,7 @@ static const struct udevice_id ksz_i2c_ids[] = { U_BOOT_DRIVER(ksz) = { .name = "ksz-switch", .id = UCLASS_DSA, - .of_match = ksz_i2c_ids, + .of_match = ksz_ids, .probe = ksz_i2c_probe, .ops = &ksz_dsa_ops, .priv_auto = sizeof(struct ksz_dsa_priv), -- 2.39.5