]> git.baikalelectronics.ru Git - uboot.git/commit
include: phy: fix NULL pointer check in phy_write()
authorThirupathaiah Annapureddy <thiruan@linux.microsoft.com>
Tue, 18 Aug 2020 00:31:08 +0000 (17:31 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 16 Sep 2020 20:54:00 +0000 (16:54 -0400)
commitba2fa08dd86e4a22820c434e4053371cd53ae118
tree9922a33b95bc5880d404015d8b302755740ddcd7
parent13d7e599a728b75ac3dc5928b6ab3ddd3b5e11d2
include: phy: fix NULL pointer check in phy_write()

phy_write() uses bus->write() instead of bus->read(). This means NULL
pointer pre-check needs to happen on bus->write instead of bus->read.

Signed-off-by: Thirupathaiah Annapureddy <thiruan@linux.microsoft.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
include/phy.h