mlxsw: spectrum_router: Pass router to mlxsw_sp_router_schedule_work() directly
authorPetr Machata <petrm@nvidia.com>
Fri, 9 Jun 2023 17:32:08 +0000 (19:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2023 08:49:29 +0000 (09:49 +0100)
commit48dde35ea157b4b17bcccb8cd6fed3dfd9627a7a
tree8bcb32dc234e16121abef06a8d15c4fc8a026e61
parent41b2bd208e8acf0f453e258f342a593332e3d2c8
mlxsw: spectrum_router: Pass router to mlxsw_sp_router_schedule_work() directly

Instead of passing a notifier block and deducing the router pointer from
that in the helper, do that in the caller, and pass the result. In the
following patches, the pointer will also be made useful in the caller.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c