]> git.baikalelectronics.ru Git - kernel.git/commit
net: ks8851: Use dev_{get,set}_drvdata()
authorMarek Vasut <marex@denx.de>
Thu, 28 May 2020 22:21:33 +0000 (00:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:30:04 +0000 (16:30 -0700)
commitf1eae553e8d2d626d4d02851dda13e459243fb1d
treef03bbe4f5563ca9065e31f1c367cfbadf9da9e1c
parent00ccfc4ddd6ebfe56507309846ffe96946532bca
net: ks8851: Use dev_{get,set}_drvdata()

Replace spi_{get,set}_drvdata() with dev_{get,set}_drvdata(), which
works for both SPI and platform drivers. This is done in preparation
for unifying the KS8851 SPI and parallel bus drivers.

There should be no functional change.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
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/ks8851.c