]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8fce6a38bda82dbd6626cfaddec0fe66af1c6c72
treeda4a6c302aa72ae14efeee0118940b2bf1c0d338
parent8f10768eeaffce69d271a5f29a924c116d273daa
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