net: phy: microchip_t1s: replace read-modify-write code with phy_modify_mmd
authorParthiban Veerasooran <Parthiban.Veerasooran@microchip.com>
Fri, 26 May 2023 15:23:44 +0000 (20:53 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 May 2023 09:49:41 +0000 (11:49 +0200)
commit221a5344806c3b8c2b172777b1b59f65228dbd8a
treee66ec3c4e7d04eefcd7a6d7f4121a389c67fdd10
parentca33db4a86023f1158dc2b3587ca3c90d2a0705e
net: phy: microchip_t1s: replace read-modify-write code with phy_modify_mmd

Replace read-modify-write code in the lan867x_config_init function to
avoid handling data type mismatch and to simplify the code.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Parthiban Veerasooran <Parthiban.Veerasooran@microchip.com>
Reviewed-by: Ramón Nordin Rodriguez <ramon.nordin.rodriguez@ferroamp.se>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/microchip_t1s.c