From: Romain Naour Date: Tue, 8 Oct 2024 07:54:27 +0000 (+0200) Subject: net: ksz9477: rename udevice_id tab to ksz_ids X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-logo.png?a=commitdiff_plain;h=04c183c542ad727afa946dc879a1b76785573548;p=u-boot.git 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 --- 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),