linux/drivers/net/dsa/hirschmann
Vincent Mailhol 226bf98055 net: devlink: let the core report the driver name instead of the drivers
The driver name is available in device_driver::name. Right now,
drivers still have to report this piece of information themselves in
their devlink_ops::info_get callback function.

In order to factorize code, make devlink_nl_info_fill() add the driver
name attribute.

Now that the core sets the driver name attribute, drivers are not
supposed to call devlink_info_driver_name_put() anymore. Remove
devlink_info_driver_name_put() and clean-up all the drivers using this
function in their callback.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Tested-by: Ido Schimmel <idosch@nvidia.com> # mlxsw
Reviewed-by: Jacob Keller  <jacob.e.keller@intel.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-11-30 21:49:38 -08:00
..
hellcreek_hwtstamp.c net: dsa: Use netif_rx(). 2022-03-04 12:02:19 +00:00
hellcreek_hwtstamp.h net: dsa: no longer clone skb in core driver 2021-04-27 14:10:15 -07:00
hellcreek_ptp.c net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup() 2022-06-23 20:39:22 -07:00
hellcreek_ptp.h net: dsa: hellcreek: Add PTP status LEDs 2020-11-05 14:04:50 -08:00
hellcreek.c net: devlink: let the core report the driver name instead of the drivers 2022-11-30 21:49:38 -08:00
hellcreek.h net: dsa: hellcreek: Offload per-tc max SDU from tc-taprio 2022-09-29 18:52:06 -07:00
Kconfig net: dsa: hellcreek: Add missing TAPRIO dependency 2021-01-29 21:02:31 -08:00
Makefile net: dsa: hellcreek: Add support for hardware timestamping 2020-11-05 14:04:49 -08:00