diff options
author | John Crispin <john@openwrt.org> | 2015-01-17 14:24:40 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-01-17 14:24:40 +0000 |
commit | 1cb2596f195b0d8e6f437e8cd416c3aa715324a2 (patch) | |
tree | 670f929df2d62ddd7af6d5ed17d9bc3e5f8c3ab9 /target/linux/generic/files/drivers/net/phy/ar8216.c | |
parent | 88df2bd2ff5aa7b31ce9aaeda25c60e8a9b980b2 (diff) | |
download | mtk-20170518-1cb2596f195b0d8e6f437e8cd416c3aa715324a2.zip mtk-20170518-1cb2596f195b0d8e6f437e8cd416c3aa715324a2.tar.gz mtk-20170518-1cb2596f195b0d8e6f437e8cd416c3aa715324a2.tar.bz2 |
ar8216: define all switch_addr structs as const
Define all switch_addr structs as const.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 44002
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8216.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index b88e9ec..906dc7a 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8216.c +++ b/target/linux/generic/files/drivers/net/phy/ar8216.c @@ -1277,7 +1277,7 @@ unlock: return ret; } -static struct switch_attr ar8xxx_sw_attr_globals[] = { +static const struct switch_attr ar8xxx_sw_attr_globals[] = { { .type = SWITCH_TYPE_INT, .name = "enable_vlan", @@ -1326,7 +1326,7 @@ static struct switch_attr ar8xxx_sw_attr_globals[] = { }, }; -struct switch_attr ar8xxx_sw_attr_port[2] = { +const struct switch_attr ar8xxx_sw_attr_port[2] = { { .type = SWITCH_TYPE_NOVAL, .name = "reset_mib", @@ -1342,7 +1342,7 @@ struct switch_attr ar8xxx_sw_attr_port[2] = { }, }; -struct switch_attr ar8xxx_sw_attr_vlan[1] = { +const struct switch_attr ar8xxx_sw_attr_vlan[1] = { { .type = SWITCH_TYPE_INT, .name = "vid", |