net: dsa: mv88e6xxx: merge mv88e6352_serdes_power_set
authorVivien Didelot <vivien.didelot@gmail.com>
Sat, 31 Aug 2019 20:18:32 +0000 (16:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 19:16:38 +0000 (12:16 -0700)
commit6600d8e5822d9b3f98c82db3e96df6895b1e87d8
tree7865ae99d14dbdd6d98ce0532400b4ce63ca61b8
parent9db4a7257e601491cf8e0b7e7e1461f7cde294bb
net: dsa: mv88e6xxx: merge mv88e6352_serdes_power_set

The mv88e6352_serdes_power_set helper is only used at one place, in
mv88e6352_serdes_power. Keep it simple and merge the two functions
together.

Use mv88e6xxx_serdes_get_lane instead of mv88e6352_port_has_serdes
to avoid moving code. No functional changes.

Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/serdes.c