diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-07 13:03:59 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-07 13:03:59 -0500 |
commit | 80fb26863952eecef70b4e93c283d99584fbb912 (patch) | |
tree | f71941dc75665a9bde532c343a402515ee62077d /drivers/net/wireless/ath/ath6kl/bmi.h | |
parent | 24fc32b35647401bbf03b3e2d5f01c6d0579a01c (diff) |
ath6kl: add ath6kl_bmi_read_hi32()
There are few 32 bit reads from the host interest area. Add
ath6kl_bmi_read_hi32() to make it easier to do that. As code is cleaner
this also fixes few checkpatch warnings.
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/bmi.h')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/bmi.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/bmi.h b/drivers/net/wireless/ath/ath6kl/bmi.h index e6a7330aadcd..3c5b382a3529 100644 --- a/drivers/net/wireless/ath/ath6kl/bmi.h +++ b/drivers/net/wireless/ath/ath6kl/bmi.h | |||
@@ -231,6 +231,13 @@ struct ath6kl_bmi_target_info { | |||
231 | ath6kl_bmi_write(ar, addr, (u8 *) &v, sizeof(v)); \ | 231 | ath6kl_bmi_write(ar, addr, (u8 *) &v, sizeof(v)); \ |
232 | }) | 232 | }) |
233 | 233 | ||
234 | #define ath6kl_bmi_read_hi32(ar, item, val) \ | ||
235 | ({ \ | ||
236 | u32 addr, *check_type = val; \ | ||
237 | (void) (check_type == val); \ | ||
238 | addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \ | ||
239 | ath6kl_bmi_read(ar, addr, (u8 *) val, 4); \ | ||
240 | }) | ||
234 | 241 | ||
235 | int ath6kl_bmi_init(struct ath6kl *ar); | 242 | int ath6kl_bmi_init(struct ath6kl *ar); |
236 | void ath6kl_bmi_cleanup(struct ath6kl *ar); | 243 | void ath6kl_bmi_cleanup(struct ath6kl *ar); |