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)
commit451d3ca0a0192def659c00f024718d8b59a3ef47
tree077e88228947cb6c767feae9e16284c476f25ded
parent51cb87c07594ea9131827d7ac162b53e0562f004
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