aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 8d933ee30583..419b1b9f998e 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -915,11 +915,10 @@ static inline u32 rt2x00_rev(const struct rt2x00_chip *chipset)
915 return chipset->rev; 915 return chipset->rev;
916} 916}
917 917
918static inline u16 rt2x00_check_rev(const struct rt2x00_chip *chipset, 918static inline bool rt2x00_check_rev(const struct rt2x00_chip *chipset,
919 const u32 rev) 919 const u32 mask, const u32 rev)
920{ 920{
921 return (((chipset->rev & 0xffff0) == rev) && 921 return ((chipset->rev & mask) == rev);
922 !!(chipset->rev & 0x0000f));
923} 922}
924 923
925/** 924/**