]> 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)
commit429f6e63c7512e59cd5c369e9c1ecb870da25d1c
tree9c04ab8bb4fda6c47ec4f3a6d5a4886c98d108cc
parent336a5b4c73a4d0a3156be8874bfd1b384978e7c2
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