1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
2 
3 #include "funeth.h"
4 #include "funeth_devlink.h"
5 
6 static const struct devlink_ops fun_dl_ops = {
7 };
8 
9 struct devlink *fun_devlink_alloc(struct device *dev)
10 {
11 	return devlink_alloc(&fun_dl_ops, sizeof(struct fun_ethdev), dev);
12 }
13 
14 void fun_devlink_free(struct devlink *devlink)
15 {
16 	devlink_free(devlink);
17 }
18 
19 void fun_devlink_register(struct devlink *devlink)
20 {
21 	devlink_register(devlink);
22 }
23 
24 void fun_devlink_unregister(struct devlink *devlink)
25 {
26 	devlink_unregister(devlink);
27 }
28