]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: Change lan9303_xxx_packet_processing() port param.
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Sat, 5 Aug 2017 11:05:46 +0000 (13:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 21:18:01 +0000 (14:18 -0700)
commita44a00c4b8436a9f61e2368750bc09119e861f77
tree077e88228947cb6c767feae9e16284c476f25ded
parent18b254f2f0837f1a4b6c25370ab0e273d6c30a47
net: dsa: lan9303: Change lan9303_xxx_packet_processing() port param.

lan9303_enable_packet_processing, lan9303_disable_packet_processing()
Pass port number (0,1,2) as parameter instead of port offset.
Because other functions in the module pass port numbers.
And to enable simplifications in following patch.

Introduce lan9303_write_switch_port().

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c