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.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 31e48c25a692..ba874cff8648 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -623,7 +623,7 @@ struct rt2x00_dev {
623 * required for deregistration of debugfs. 623 * required for deregistration of debugfs.
624 */ 624 */
625#ifdef CONFIG_RT2X00_LIB_DEBUGFS 625#ifdef CONFIG_RT2X00_LIB_DEBUGFS
626 const struct rt2x00debug_intf *debugfs_intf; 626 struct rt2x00debug_intf *debugfs_intf;
627#endif /* CONFIG_RT2X00_LIB_DEBUGFS */ 627#endif /* CONFIG_RT2X00_LIB_DEBUGFS */
628 628
629 /* 629 /*
@@ -791,6 +791,12 @@ struct rt2x00_dev {
791 ring_loop(__entry, (__dev)->tx, ring_end(__dev)) 791 ring_loop(__entry, (__dev)->tx, ring_end(__dev))
792 792
793/* 793/*
794 * Compute an array index from a pointer to an element and the base pointer.
795 */
796#define ARRAY_INDEX(__elem, __base) \
797 ( ((char *)(__elem) - (char *)(__base)) / sizeof(*(__elem)) )
798
799/*
794 * Generic RF access. 800 * Generic RF access.
795 * The RF is being accessed by word index. 801 * The RF is being accessed by word index.
796 */ 802 */