]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: Factor out register access opcode generation
authorMarek Vasut <marex@denx.de>
Tue, 25 Jun 2019 23:43:44 +0000 (01:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jun 2019 18:00:31 +0000 (11:00 -0700)
commit666abd2cb23f222bff6390e518db47c5baca11d7
tree94df87913db41060bfa95f39c0a43c113c09565e
parent5a356d43285bddaecb7e46ea2e40137ab6efd359
net: dsa: microchip: Factor out register access opcode generation

Factor out the code which sends out the register read/write opcodes
to the switch, since the code differs in single bit between read and
write.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Woojung Huh <Woojung.Huh@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477_spi.c