rt2x00: Simplify rt2x00_check_rev
authorIvo van Doorn <ivdoorn@gmail.com>
Tue, 5 May 2009 17:46:08 +0000 (19:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:15:04 +0000 (15:15 -0400)
commit358623c22c9fd837b3b1b444377037f72553dc9f
treefcf4b4838edde6924157473086e8b7130f120ebd
parent6cfe62cd58da862db04d4eb61f218f65b0cedbb3
rt2x00: Simplify rt2x00_check_rev

rt2x00_check_rev() was too specific for rt2500usb and rt73usb,
by adding the mask argument (instead of hardcoding it into
the function itself) we can use the function in rt2800usb as
well.

v2: Fix revision mask for rt2800usb

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2500usb.c
drivers/net/wireless/rt2x00/rt2800usb.c
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt73usb.c