OSDN Git Service

mlxsw: make mlxsw_config_profile const
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 11 Aug 2017 13:40:42 +0000 (19:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 21:57:04 +0000 (14:57 -0700)
commit159fe88efda2f5b84681727a4291511338132c1f
treeda4a6c302aa72ae14efeee0118940b2bf1c0d338
parent0ed80da518a1f27562a013f106505e495e891fe4
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/switchib.c
drivers/net/ethernet/mellanox/mlxsw/switchx2.c