On Fri, May 29, 2020 at 12:21:31AM +0200, Marek Vasut wrote: > Since the driver probe function already has a struct device *dev pointer > and can easily derive of_node pointer from it, pass the of_node pointer as > a parameter to ks8851_init_mac() to avoid fishing it out from ks->spidev. > This is the only reference to spidev in the function, so get rid of it. > This is done in preparation for unifying the KS8851 SPI and parallel bus > drivers. > > No functional change. > > Signed-off-by: Marek Vasut <ma...@denx.de>
Reviewed-by: Andrew Lunn <and...@lunn.ch> Andrew