]> 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)
commit14a3c10dc4bc79a815a39618a6a57a2307e78ef3
tree94df87913db41060bfa95f39c0a43c113c09565e
parent8889621aa3aaff0dcf18b6bde9f37bae19934aa6
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