On Thu, May 14, 2020 at 02:07:32AM +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> > Cc: David S. Miller <da...@davemloft.net> > Cc: Lukas Wunner <lu...@wunner.de> > Cc: Petr Stetiar <yn...@true.cz> > Cc: YueHaibing <yuehaib...@huawei.com>
Reviewed-by: Andrew Lunn <and...@lunn.ch> Andrew