]> git.baikalelectronics.ru Git - uboot.git/commit
net: e1000: split e1000_read_mac_addr
authorHannu Lounento <hannu.lounento@ge.com>
Wed, 10 Jan 2018 19:31:25 +0000 (20:31 +0100)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
commit4b2572d6b3989dd02de12506d3da9a3904a05dc8
tree5a5ceb639226bcf51f776696ab78156ad8fb25f5
parentf798125ecefed81c5f4e0e28e90465e618219b0e
net: e1000: split e1000_read_mac_addr

Split the implementation of e1000_read_mac_addr into eeprom and register
versions called by e1000_read_mac_addr.

This allows for calling e1000_read_mac_addr when MAC address is needed
with no constraints where it is read from, and for calling the register
and, especially, the eeprom version directly in order to specify where
to read the address from.

Signed-off-by: Hannu Lounento <hannu.lounento@ge.com>
CC: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/net/e1000.c