diff options
author | David S. Miller <davem@davemloft.net> | 2022-05-18 14:51:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-18 14:51:00 +0300 |
commit | e8bacf408fa816fc01c25ce7203e41601e98a027 (patch) | |
tree | fe450860fb8dd22cce2e2bc0e99e69232a90c276 /arch | |
parent | 6431ce6cd3bb2ccf55acab0ccaae33208e9a0ab3 (diff) | |
parent | 008db08b64f44dfc69efb788e8b4bfa43ba91700 (diff) | |
download | linux-e8bacf408fa816fc01c25ce7203e41601e98a027.tar.xz |
Merge branch 'dsa-microchip-ksz_switch-refactor'
Arun Ramadoss says:
====================
net: dsa: microchip: refactor the ksz switch init function
During the ksz_switch_register function, it calls the individual switches init
functions (ksz8795.c and ksz9477.c). Both these functions have few things in
common like, copying the chip specific data to struct ksz_dev, allocating
ksz_port memory and mib_names memory & cnt. And to add the new LAN937x series
switch, these allocations has to be replicated.
Based on the review feedback of LAN937x part support patch, refactored the
switch init function to move allocations to switch register.
Link:https://patchwork.kernel.org/project/netdevbpf/patch/20220504151755.11737-8-arun.ramadoss@microchip.com/
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions