mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

dsa.c and dsa2.c are bloated with too much off-topic code. Identify all code related to devlink and move it to a new devlink.c file. Steer clear of the dsa_priv.h dumping ground antipattern and create a dedicated devlink.h for it, which will be included only by the C files which need it. Usage of dsa_priv.h will be minimized in later patches. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
13 lines
276 B
C
13 lines
276 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#ifndef __DSA_DEVLINK_H
|
|
#define __DSA_DEVLINK_H
|
|
|
|
struct dsa_port;
|
|
|
|
extern const struct devlink_ops dsa_devlink_ops;
|
|
|
|
int dsa_port_devlink_setup(struct dsa_port *dp);
|
|
void dsa_port_devlink_teardown(struct dsa_port *dp);
|
|
|
|
#endif
|