mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
net: dsa: sja1105: Shim declaration of struct sja1105_dyn_cmd
This structure is merely an implementation detail and should be hidden from the sja1105_dynamic_config.h header, which provides to the rest of the driver an abstract access to the dynamic configuration interface of the switch. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
014da2a58f
commit
31b31120d7
2 changed files with 9 additions and 7 deletions
|
@ -35,6 +35,14 @@
|
|||
#define SJA1105_MAX_DYN_CMD_SIZE \
|
||||
SJA1105PQRS_SIZE_MAC_CONFIG_DYN_CMD
|
||||
|
||||
struct sja1105_dyn_cmd {
|
||||
u64 valid;
|
||||
u64 rdwrset;
|
||||
u64 errors;
|
||||
u64 valident;
|
||||
u64 index;
|
||||
};
|
||||
|
||||
static void
|
||||
sja1105pqrs_l2_lookup_cmd_packing(void *buf, struct sja1105_dyn_cmd *cmd,
|
||||
enum packing_op op)
|
||||
|
|
|
@ -7,13 +7,7 @@
|
|||
#include "sja1105.h"
|
||||
#include <linux/packing.h>
|
||||
|
||||
struct sja1105_dyn_cmd {
|
||||
u64 valid;
|
||||
u64 rdwrset;
|
||||
u64 errors;
|
||||
u64 valident;
|
||||
u64 index;
|
||||
};
|
||||
struct sja1105_dyn_cmd;
|
||||
|
||||
struct sja1105_dynamic_table_ops {
|
||||
/* This returns size_t just to keep same prototype as the
|
||||
|
|
Loading…
Reference in a new issue