net: dsa: ensure dsa driver has proper ops
authorTim Harvey <tharvey@gateworks.com>
Wed, 30 Nov 2022 17:42:46 +0000 (09:42 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 2 Feb 2023 19:22:08 +0000 (14:22 -0500)
commit43c2a00a14a7e4567b156a2345870d008485da3c
tree7d4746490ea7ba6eb2db8157917eafae122898db
parentc5868fcd25c670f5c4e37afca2c5eaddadd218b4
net: dsa: ensure dsa driver has proper ops

Add a function to sanity check a dsa driver having proper ops.

Suggested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
net/dsa-uclass.c