diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-11 19:10:42 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-11 14:57:04 -0700 |
commit | 159fe88efda2f5b84681727a4291511338132c1f (patch) | |
tree | da4a6c302aa72ae14efeee0118940b2bf1c0d338 /drivers/net/ethernet/mellanox/mlxsw/switchx2.c | |
parent | openvswitch: Remove unnecessary newlines from OVS_NLERR uses (diff) | |
download | linux-dev-159fe88efda2f5b84681727a4291511338132c1f.tar.xz linux-dev-159fe88efda2f5b84681727a4291511338132c1f.zip |
mlxsw: make mlxsw_config_profile const
Make these structures const as they only stored in the profile field of
a mlxsw_driver structure, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/switchx2.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/switchx2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c index 3b0f72455681..f3c29bbf07e2 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/switchx2.c +++ b/drivers/net/ethernet/mellanox/mlxsw/switchx2.c @@ -1674,7 +1674,7 @@ static void mlxsw_sx_fini(struct mlxsw_core *mlxsw_core) mlxsw_sx_ports_remove(mlxsw_sx); } -static struct mlxsw_config_profile mlxsw_sx_config_profile = { +static const struct mlxsw_config_profile mlxsw_sx_config_profile = { .used_max_vepa_channels = 1, .max_vepa_channels = 0, .used_max_mid = 1, |