]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
treewide: constify mdio_bus 21167/head
authorRosen Penev <rosenp@gmail.com>
Sun, 14 Dec 2025 23:44:01 +0000 (15:44 -0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 13 Mar 2026 18:56:20 +0000 (19:56 +0100)
In generic, there's a backport from 6.14 that makes this change. Do so
in downstream locations as well.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21167
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/files/drivers/net/phy/rtl8261n/rtk_phy.c
target/linux/mediatek/files-6.12/drivers/net/phy/air_an8855.c
target/linux/mediatek/files/drivers/net/phy/en8801sc.c
target/linux/mediatek/patches-6.12/701-net-phy-mediatek-add-driver-for-built-in-2.5G-ethern.patch
target/linux/realtek/files-6.12/drivers/net/phy/realtek/realtek_multiport.c
target/linux/siflower/files-6.12/drivers/net/phy/siflower.c

index a1eb2c16149cd65b7bf2438a6931ca713c2ac8f6..8c142afee6087ae8b759cae1459702823b3edf71 100644 (file)
@@ -310,7 +310,7 @@ static struct phy_driver rtk_phy_drivers[] = {
 module_phy_driver(rtk_phy_drivers);
 
 
-static struct mdio_device_id __maybe_unused rtk_phy_tbl[] = {
+static const struct mdio_device_id __maybe_unused rtk_phy_tbl[] = {
     { PHY_ID_MATCH_EXACT(REALTEK_PHY_ID_RTL8261N) },
     { PHY_ID_MATCH_EXACT(REALTEK_PHY_ID_RTL8264B) },
     { PHY_ID_MATCH_EXACT(REALTEK_PHY_ID_RTL8264) },
index 7fab0854ef78383e896b13fc08ff8ac91d1abbfd..cf10b7a9a89e6571f4160571caad976a9e492fa5 100644 (file)
@@ -255,7 +255,7 @@ static struct phy_driver an8855_driver[] = {
 
 module_phy_driver(an8855_driver);
 
-static struct mdio_device_id __maybe_unused an8855_tbl[] = {
+static const struct mdio_device_id __maybe_unused an8855_tbl[] = {
        { PHY_ID_MATCH_EXACT(AN8855_PHY_ID) },
        { }
 };
index 08774e3b88890bb32a0a5fede829b05b6fd59b46..301b76c9a6a76d945fdbbec3a2c74640321f2731 100644 (file)
@@ -1109,7 +1109,7 @@ static struct phy_driver Airoha_driver[] = {
 
 module_phy_driver(Airoha_driver);
 
-static struct mdio_device_id __maybe_unused Airoha_tbl[] = {
+static const struct mdio_device_id __maybe_unused Airoha_tbl[] = {
        { EN8801SC_PHY_ID, 0x0ffffff0 },
        { }
 };
index 1c61aaf4aed464318ad30d55d2dc5c590c60eaeb..ff7aa40f536b90b2aaba6aaa7b4bbf419eccf85e 100644 (file)
@@ -386,7 +386,7 @@ Signed-off-by: Sky Huang <skylake.huang@mediatek.com>
 +
 +module_phy_driver(mtk_2p5gephy_driver);
 +
-+static struct mdio_device_id __maybe_unused mtk_2p5ge_phy_tbl[] = {
++static const struct mdio_device_id __maybe_unused mtk_2p5ge_phy_tbl[] = {
 +      { PHY_ID_MATCH_VENDOR(0x00339c00) },
 +      { }
 +};
index 6704f31a2b731e5e06c4088d3e71248473941378..3074e5785843d4452c1964592676e7f1db23003e 100644 (file)
@@ -695,7 +695,7 @@ static struct phy_driver rtl83xx_phy_driver[] = {
 
 module_phy_driver(rtl83xx_phy_driver);
 
-static struct mdio_device_id __maybe_unused rtl83xx_tbl[] = {
+static const struct mdio_device_id __maybe_unused rtl83xx_tbl[] = {
        { PHY_ID_MATCH_MODEL(PHY_ID_RTL8214_OR_8218) },
        { }
 };
index 22acb5b67e89d43d177ab0269e843dc653e58c58..9a82e2178c60d9ae2603b0e3267675c2352b6fff 100644 (file)
@@ -865,7 +865,7 @@ static struct phy_driver sf_phy_drivers[] = {
 /* for linux 4.x */
 module_phy_driver(sf_phy_drivers);
 
-static struct mdio_device_id __maybe_unused siflower_phy_tbl[] = {
+static const struct mdio_device_id __maybe_unused siflower_phy_tbl[] = {
        { SF1211F_PHY_ID, SIFLOWER_PHY_ID_MASK },
        { SF1240_PHY_ID, SIFLOWER_PHY_ID_MASK },
        {},