]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: qca8k: move qca8k_port_to_phy() to header
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 17 Apr 2023 15:17:23 +0000 (17:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 11:59:15 +0000 (12:59 +0100)
commit3e8b4d6277fd19d98c817576954dd6a4ff3caa2b
tree5f0dd62f573f0eb524e1cd6592ecae0fa2d9e9d4
parent158441884772a19e840429e210bfd1879094306b
net: dsa: qca8k: move qca8k_port_to_phy() to header

Move qca8k_port_to_phy() to qca8k header as it's useful for future
reference in Switch LEDs module since the same logic is applied to get
the right index of the switch port.
Make it inline as it's simple function that just decrease the port.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/qca8k-8xxx.c
drivers/net/dsa/qca/qca8k.h