]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
rt2x00: rt2800lib: introduce rt2800_eeprom_read_from_array helper
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 09:25:54 +0000 (11:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:27 +0000 (16:54 -0400)
commit022138ca93f016374d5d3f69c070c75596c5ecac
treee50189525b170e79864ed3be7694b24e6d971431
parent3e38d3daf881a78ac13e93504a8ac5777040797e
rt2x00: rt2800lib: introduce rt2800_eeprom_read_from_array helper

Add a new helper function and use that for reading
single elements of various arrays in the EEPROM.

The patch does not change the current behaviour,
but it allows to use sequential values for the
rt2800_eeprom_word enums. The conversion will be
implemented in a subsequent change.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c