]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Separate SPI operations into separate file
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:44 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commitbdf0e6105616d2e0cecaf0af141da47344467244
treea63ff38decce08db96a778972553fd483a9e58e8
parent05c51cf7f91ec46d6aa51399b992392dceafb989
net: ks8851: Separate SPI operations into separate file

Pull all the SPI bus specific code into a separate file, so that it is
not mixed with the common code. Rename ks8851.c to ks8851_common.c. The
ks8851_common.c is linked with ks8851_spi.c now, so it can call the
accessors in the ks8851_spi.c without any pointer indirection.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Lukas Wunner <lukas@wunner.de>
Cc: Petr Stetiar <ynezz@true.cz>
Cc: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/Makefile
drivers/net/ethernet/micrel/ks8851.c [deleted file]
drivers/net/ethernet/micrel/ks8851.h
drivers/net/ethernet/micrel/ks8851_common.c [new file with mode: 0644]
drivers/net/ethernet/micrel/ks8851_spi.c [new file with mode: 0644]