net: devlink: region: Pass the region ops to the snapshot function
authorAndrew Lunn <andrew@lunn.ch>
Fri, 18 Sep 2020 19:11:02 +0000 (21:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 01:17:45 +0000 (18:17 -0700)
commitd4602a9f47196dd62deba66ec361b5897f1ae62b
treec3720df389760898ab277b698d76040cfc25a28c
parente14e05e71d106aef973e2cf100e540d911703a6e
net: devlink: region: Pass the region ops to the snapshot function

Pass the region to be snapshotted to the function performing the
snapshot. This allows one function to operate on numerous regions.

v4:
Add missing kerneldoc for ICE

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ice/ice_devlink.c
drivers/net/netdevsim/dev.c
include/net/devlink.h
net/core/devlink.c