net: ksz9477: rename udevice_id tab to ksz_ids
authorRomain Naour <romain.naour@smile.fr>
Tue, 8 Oct 2024 07:54:27 +0000 (09:54 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 16:19:44 +0000 (10:19 -0600)
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 <romain.naour@smile.fr>
drivers/net/ksz9477.c

index c8c6595..3756f48 100644 (file)
@@ -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),