]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: move read_switch_id function to common code
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 27 Jul 2022 11:35:23 +0000 (13:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 05:24:40 +0000 (22:24 -0700)
commit9a16c26f53f013fc94ad3c916cabd733593907d0
tree103a0dbdc757b3fdc05b88792d90b41d640ebaf2
parent54fce03806cd882d691c5572d1f972d092e8efec
net: dsa: qca8k: move read_switch_id function to common code

The same function to read the switch id is used by drivers based on
qca8k family switch. Move them to common code to make them accessible
also by other drivers.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca/qca8k-8xxx.c
drivers/net/dsa/qca/qca8k-common.c
drivers/net/dsa/qca/qca8k.h