mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 14:59:45 +01:00
treewide: constify mdio_bus
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>
This commit is contained in:
parent
d85a332831
commit
63e0c89038
6 changed files with 6 additions and 6 deletions
|
|
@ -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) },
|
||||
|
|
|
|||
|
|
@ -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) },
|
||||
{ }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
{ }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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) },
|
||||
+ { }
|
||||
+};
|
||||
|
|
|
|||
|
|
@ -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) },
|
||||
{ }
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
{},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue