Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: dsa: ks8995: Fix incorrect OF match table name

The driver declares an OF match table named ks8895_spi_of_match, even
though it describes compatible strings for the KS8995 and related Micrel
switches. This is a leftover typo, the correct name should match the
chip family handled by this driver ks8995, and also match the variable
used in spi_driver.of_match_table.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patch.msgid.link/20251117095356.2099772-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Alok Tiwari and committed by
Jakub Kicinski
eb74ae2f efb23816

+3 -3
+3 -3
drivers/net/dsa/ks8995.c
··· 203 203 }; 204 204 MODULE_DEVICE_TABLE(spi, ks8995_id); 205 205 206 - static const struct of_device_id ks8895_spi_of_match[] = { 206 + static const struct of_device_id ks8995_spi_of_match[] = { 207 207 { .compatible = "micrel,ks8995" }, 208 208 { .compatible = "micrel,ksz8864" }, 209 209 { .compatible = "micrel,ksz8795" }, 210 210 { }, 211 211 }; 212 - MODULE_DEVICE_TABLE(of, ks8895_spi_of_match); 212 + MODULE_DEVICE_TABLE(of, ks8995_spi_of_match); 213 213 214 214 static inline u8 get_chip_id(u8 val) 215 215 { ··· 842 842 static struct spi_driver ks8995_driver = { 843 843 .driver = { 844 844 .name = "spi-ks8995", 845 - .of_match_table = ks8895_spi_of_match, 845 + .of_match_table = ks8995_spi_of_match, 846 846 }, 847 847 .probe = ks8995_probe, 848 848 .remove = ks8995_remove,