mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-06 05:02:31 +00:00
6034e059f5
W=1 builds now warn if module is built without a MODULE_DESCRIPTION(). Add descriptions to the DSA loopback fixed PHY module. Suggested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Breno Leitao <leitao@debian.org> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20240208164244.3818498-10-leitao@debian.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
37 lines
805 B
C
37 lines
805 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
#include <linux/kernel.h>
|
|
#include <linux/init.h>
|
|
#include <linux/phy.h>
|
|
#include <net/dsa.h>
|
|
|
|
#include "dsa_loop.h"
|
|
|
|
static struct dsa_loop_pdata dsa_loop_pdata = {
|
|
.cd = {
|
|
.port_names[0] = "lan1",
|
|
.port_names[1] = "lan2",
|
|
.port_names[2] = "lan3",
|
|
.port_names[3] = "lan4",
|
|
.port_names[DSA_LOOP_CPU_PORT] = "cpu",
|
|
},
|
|
.name = "DSA mockup driver",
|
|
.enabled_ports = 0x1f,
|
|
.netdev = "eth0",
|
|
};
|
|
|
|
static const struct mdio_board_info bdinfo = {
|
|
.bus_id = "fixed-0",
|
|
.modalias = "dsa-loop",
|
|
.mdio_addr = 31,
|
|
.platform_data = &dsa_loop_pdata,
|
|
};
|
|
|
|
static int __init dsa_loop_bdinfo_init(void)
|
|
{
|
|
return mdiobus_register_board_info(&bdinfo, 1);
|
|
}
|
|
arch_initcall(dsa_loop_bdinfo_init)
|
|
|
|
MODULE_DESCRIPTION("DSA mock-up switch driver");
|
|
MODULE_LICENSE("GPL");
|