mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

devlink_ops::info_get() is now optional and devlink will continue to report information even if that callback gets removed. Remove all the empty devlink_ops::info_get() callbacks from the drivers. Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
28 lines
534 B
C
28 lines
534 B
C
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
|
|
|
|
#include "funeth.h"
|
|
#include "funeth_devlink.h"
|
|
|
|
static const struct devlink_ops fun_dl_ops = {
|
|
};
|
|
|
|
struct devlink *fun_devlink_alloc(struct device *dev)
|
|
{
|
|
return devlink_alloc(&fun_dl_ops, sizeof(struct fun_ethdev), dev);
|
|
}
|
|
|
|
void fun_devlink_free(struct devlink *devlink)
|
|
{
|
|
devlink_free(devlink);
|
|
}
|
|
|
|
void fun_devlink_register(struct devlink *devlink)
|
|
{
|
|
devlink_register(devlink);
|
|
}
|
|
|
|
void fun_devlink_unregister(struct devlink *devlink)
|
|
{
|
|
devlink_unregister(devlink);
|
|
}
|