mlxsw: reg: Use helper macro to define registers
authorJiri Pirko <jiri@mellanox.com>
Fri, 21 Oct 2016 14:07:20 +0000 (16:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Oct 2016 21:21:29 +0000 (17:21 -0400)
commit21978dcfc8d847db3e280427547241a59d58ac01
treecb2e8d0a10e8cdd4ec36e940acf1d82fc0c292b3
parent412791df394bbf3547204b9875c7f5648e3dcf91
mlxsw: reg: Use helper macro to define registers

Save some code and also prepare to easily carry name in string form.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h