Commit 8f4ebdb
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>1 parent ef23841 commit 8f4ebdb
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
688 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
689 | 691 | | |
690 | 692 | | |
691 | 693 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5747 | 5747 | | |
5748 | 5748 | | |
5749 | 5749 | | |
5750 | | - | |
5751 | | - | |
| 5750 | + | |
5752 | 5751 | | |
5753 | 5752 | | |
5754 | 5753 | | |
5755 | | - | |
5756 | | - | |
5757 | 5754 | | |
5758 | 5755 | | |
5759 | 5756 | | |
| |||
0 commit comments