]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: move page cache to driver priv
authorAnsuel Smith <ansuelsmth@gmail.com>
Wed, 2 Feb 2022 00:03:32 +0000 (01:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Feb 2022 14:43:59 +0000 (14:43 +0000)
commit4264350acb75430d5021a1d7de56a33faf69a097
tree9c04ab8bb4fda6c47ec4f3a6d5a4886c98d108cc
parent2cd5485663847d468dc207b3ff85fb1fab44d97f
net: dsa: qca8k: move page cache to driver priv

There can be multiple qca8k switch on the same system. Move the static
qca8k_current_page to qca8k_priv and make it specific for each switch.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h