rtl8180: move eeprom read stuff in a separate function
authorAndrea Merello <andrea.merello@gmail.com>
Sat, 15 Mar 2014 17:29:38 +0000 (18:29 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 17 Mar 2014 17:44:15 +0000 (13:44 -0400)
commit7d4b829a93c9b2bd1ed68c26f42e803041726f4b
tree9891d57b30f91622732c7cb2ed0247658bd26daa
parent9069af794e8219d3ee4dff8aa84b2d201472ad16
rtl8180: move eeprom read stuff in a separate function

Eeprom read operations are mixed in the probe function.
Make the code more readable and clean by extracting this code and
moving it in a dedicated function.

The variable eeprom_cck_table_adr, now useless, is here because
it will be needed for rtl8187se support, that I hope to add soon.

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8180/dev.c
drivers/net/wireless/rtl818x/rtl8180/rtl8180.h