]> git.baikalelectronics.ru Git - uboot.git/commit
net: rtl8139: Pass private data into rtl8139_eeprom_delay()
authorMarek Vasut <marek.vasut@gmail.com>
Sat, 9 May 2020 20:34:40 +0000 (22:34 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 12 Jun 2020 17:17:23 +0000 (13:17 -0400)
commit7ec61c06af14089fa760ca675e95a933d8ef601c
tree0cfb085adfe557e9849baeff53210f6b738e6f24
parent736162a896fac870314565c1e4cc52869cded201
net: rtl8139: Pass private data into rtl8139_eeprom_delay()

Instead of always calling rtl8139_eeprom_delay() with priv->ioaddr,
call it with priv and let the function access priv->ioaddr. This
reduces code duplication and has no impact, since the compiler will
inline this as needed anyway.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/rtl8139.c