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)
commite0a75fed9e5940d976dd10f2c27194e5fd5f7944
tree5a5ceb639226bcf51f776696ab78156ad8fb25f5
parentf1bcad22dd19754d2233d3150c841c3659ae9560
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