summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/rt2x00/rt2800pci.h
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-11-04 20:33:41 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-11-07 00:48:49 +0300
commitb4a77d0dee11db834bebe0cc78c211cfebf0d924 (patch)
tree3df9341bd55bf6852b1259f9a1df06314c753061 /drivers/net/wireless/rt2x00/rt2800pci.h
parentab209b9834d43ac7c01e803681c5c50c941e4de3 (diff)
downloadlinux-b4a77d0dee11db834bebe0cc78c211cfebf0d924.tar.xz
rt2800pci: add rt2800_regbusy_read() wrapper
Part of preparations for later code unification. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800pci.h')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.h b/drivers/net/wireless/rt2x00/rt2800pci.h
index bace4921e8cd..392f580cbb60 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.h
+++ b/drivers/net/wireless/rt2x00/rt2800pci.h
@@ -63,6 +63,14 @@ static inline void rt2800_register_multiwrite(struct rt2x00_dev *rt2x00dev,
rt2x00pci_register_multiwrite(rt2x00dev, offset, value, length);
}
+static inline int rt2800_regbusy_read(struct rt2x00_dev *rt2x00dev,
+ const unsigned int offset,
+ const struct rt2x00_field32 field,
+ u32 *reg)
+{
+ return rt2x00pci_regbusy_read(rt2x00dev, offset, field, reg);
+}
+
/*
* RF chip defines.
*