]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/net/wireless/rt2x00/rt2800lib.c
rt2x00: rt2800lib: introduce rt2800_eeprom_word_index helper
authorGabor Juhos <juhosg@openwrt.org>
Mon, 8 Jul 2013 09:25:55 +0000 (11:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:54:28 +0000 (16:54 -0400)
commit379448fe34e289fdcc473399d4f6cac19e757fb8
treec2989b0994d67f1500a7a07f4403f8a19309a9d4
parent022138ca93f016374d5d3f69c070c75596c5ecac
rt2x00: rt2800lib: introduce rt2800_eeprom_word_index helper

Instead of assign the offset value to the
enum directly use a new helper function to
convert a rt2800_eeprom_word enum into an
index of the rt2x00_dev->eeprom array.

The patch does not change the existing
behaviour, but makes it possible to add
support for three-chain devices which are
using a different EEPROM layout.

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