]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit10021c79273dab3bd8ba9e8295c211edadf0aee7
treefcf4b4838edde6924157473086e8b7130f120ebd
parent5cad62b285854ff60fecc00a3f9fc24266177933
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