mlxsw: reg: Generare register names automatically
authorJiri Pirko <jiri@mellanox.com>
Fri, 21 Oct 2016 14:07:21 +0000 (16:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Oct 2016 21:21:29 +0000 (17:21 -0400)
commit8e9658d56718a62d0586f4dbb61b68b07d3c6cc0
treee6b2d87811f225f106b4507f5b8f9aaf618f936c
parent21978dcfc8d847db3e280427547241a59d58ac01
mlxsw: reg: Generare register names automatically

Extend the MLXSW_REG_DEFINE macro to store register name in string form.
Use this string later on instead of hard coded string values.

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