Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 159fe88e authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ed80da5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3757,7 +3757,7 @@ static void mlxsw_sp_fini(struct mlxsw_core *mlxsw_core)
	mlxsw_sp_fids_fini(mlxsw_sp);
	mlxsw_sp_fids_fini(mlxsw_sp);
}
}


static struct mlxsw_config_profile mlxsw_sp_config_profile = {
static const struct mlxsw_config_profile mlxsw_sp_config_profile = {
	.used_max_vepa_channels		= 1,
	.used_max_vepa_channels		= 1,
	.max_vepa_channels		= 0,
	.max_vepa_channels		= 0,
	.used_max_mid			= 1,
	.used_max_mid			= 1,
+1 −1
Original line number Original line Diff line number Diff line
@@ -497,7 +497,7 @@ static void mlxsw_sib_fini(struct mlxsw_core *mlxsw_core)
	mlxsw_sib_ports_remove(mlxsw_sib);
	mlxsw_sib_ports_remove(mlxsw_sib);
}
}


static struct mlxsw_config_profile mlxsw_sib_config_profile = {
static const struct mlxsw_config_profile mlxsw_sib_config_profile = {
	.used_max_system_port		= 1,
	.used_max_system_port		= 1,
	.max_system_port		= 48000,
	.max_system_port		= 48000,
	.used_max_ib_mc			= 1,
	.used_max_ib_mc			= 1,
+1 −1
Original line number Original line Diff line number Diff line
@@ -1674,7 +1674,7 @@ static void mlxsw_sx_fini(struct mlxsw_core *mlxsw_core)
	mlxsw_sx_ports_remove(mlxsw_sx);
	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,
	.used_max_vepa_channels		= 1,
	.max_vepa_channels		= 0,
	.max_vepa_channels		= 0,
	.used_max_mid			= 1,
	.used_max_mid			= 1,