From: Jiri Pirko <j...@mellanox.com>

Mostly cosmetics and small resource values management rewrite.

Jiri Pirko (6):
  mlxsw: item: Make struct mlxsw_item args const
  mlxsw: item: Make char *buf arg constant for getters
  mlxsw: reg: Use helper macro to define registers
  mlxsw: reg: Generare register names automatically
  mlxsw: cmd: Push resource query defines to cmd.h
  mlxsw: Convert resources into array

 drivers/net/ethernet/mellanox/mlxsw/cmd.h          |   5 +
 drivers/net/ethernet/mellanox/mlxsw/core.c         |  32 +-
 drivers/net/ethernet/mellanox/mlxsw/core.h         |  44 +-
 drivers/net/ethernet/mellanox/mlxsw/item.h         |  50 +-
 drivers/net/ethernet/mellanox/mlxsw/pci.c          | 142 ++----
 drivers/net/ethernet/mellanox/mlxsw/reg.h          | 502 ++++++---------------
 drivers/net/ethernet/mellanox/mlxsw/resources.h    | 121 +++++
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c     |  42 +-
 drivers/net/ethernet/mellanox/mlxsw/spectrum.h     |   5 +-
 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  |  39 +-
 .../ethernet/mellanox/mlxsw/spectrum_switchdev.c   |   7 +-
 drivers/net/ethernet/mellanox/mlxsw/switchx2.c     |   2 +-
 12 files changed, 405 insertions(+), 586 deletions(-)
 create mode 100644 drivers/net/ethernet/mellanox/mlxsw/resources.h

-- 
2.5.5

Reply via email to