Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
This commit is contained in:
@@ -851,13 +851,15 @@ struct rt2x00_dev {
|
||||
static inline void rt2x00_rf_read(struct rt2x00_dev *rt2x00dev,
|
||||
const unsigned int word, u32 *data)
|
||||
{
|
||||
*data = rt2x00dev->rf[word];
|
||||
BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32));
|
||||
*data = rt2x00dev->rf[word - 1];
|
||||
}
|
||||
|
||||
static inline void rt2x00_rf_write(struct rt2x00_dev *rt2x00dev,
|
||||
const unsigned int word, u32 data)
|
||||
{
|
||||
rt2x00dev->rf[word] = data;
|
||||
BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32));
|
||||
rt2x00dev->rf[word - 1] = data;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user