diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-11-04 20:33:05 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-07 00:48:47 +0300 |
commit | abbb505dddef31707d06ff26539639ccdfa56f45 (patch) | |
tree | fbbf70916b3538bbed0d873db79d124d5bb9f1f1 /drivers/net/wireless/rt2x00/rt2800usb.h | |
parent | e9a6269d5bcb1c7cd18cea02a9a73fac8712f2d1 (diff) | |
download | linux-abbb505dddef31707d06ff26539639ccdfa56f45.tar.xz |
rt2800usb: add rt2800_register_[read,write]() wrappers
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/rt2800usb.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.h b/drivers/net/wireless/rt2x00/rt2800usb.h index 7b1130a22c55..9d2dcc5f849c 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.h +++ b/drivers/net/wireless/rt2x00/rt2800usb.h @@ -27,6 +27,27 @@ #ifndef RT2800USB_H #define RT2800USB_H +static inline void rt2800_register_read(struct rt2x00_dev *rt2x00dev, + const unsigned int offset, + u32 *value) +{ + rt2x00usb_register_read(rt2x00dev, offset, value); +} + +static inline void rt2800_register_write(struct rt2x00_dev *rt2x00dev, + const unsigned int offset, + u32 value) +{ + rt2x00usb_register_write(rt2x00dev, offset, value); +} + +static inline void rt2800_register_write_lock(struct rt2x00_dev *rt2x00dev, + const unsigned int offset, + u32 value) +{ + rt2x00usb_register_write_lock(rt2x00dev, offset, value); +} + /* * RF chip defines. * |