OSDN Git Service

mlxsw: Make PMAOS pack function more generic
authorIdo Schimmel <idosch@nvidia.com>
Wed, 15 Sep 2021 10:13:13 +0000 (13:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Sep 2021 15:17:16 +0000 (16:17 +0100)
commit8f4ebdb0a2744557a95810787126eb0555e7424b
tree3cc884ab265b956cf718e9175aa8665a8ea4708d
parentef23841bb94ab525363e9161847894df70ee49ad
mlxsw: Make PMAOS pack function more generic

The PMAOS register has enable bits (e.g., PMAOS.ee) that allow changing
only a subset of the fields, which is exactly what subsequent patches
will need to do. Instead of passing multiple arguments to its pack
function, only pass the module index and let the rest be set by the
different callers.

No functional changes intended.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/reg.h