From: Gabor Juhos Date: Mon, 8 Jul 2013 09:25:55 +0000 (+0200) Subject: rt2x00: rt2800lib: introduce rt2800_eeprom_word_index helper X-Git-Tag: v3.12-rc1~132^2~297^2^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=379448fe34e289fdcc473399d4f6cac19e757fb8;p=pandora-kernel.git 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 Acked-by: Gertjan van Wingerde Signed-off-by: John W. Linville --- Reading git-diff-tree failed