2014-04-23 07:52:18 +00:00
|
|
|
From 7a69da907de668fb22a30ae218062d6f081864ea Mon Sep 17 00:00:00 2001
|
|
|
|
From: Gabor Juhos <juhosg@openwrt.org>
|
|
|
|
Date: Sat, 17 Aug 2013 19:31:41 +0200
|
|
|
|
Subject: [PATCH] rt2x00: rt2800lib: move rt2800_drv_data declaration into
|
|
|
|
rt2800lib.h
|
|
|
|
|
|
|
|
The rt2800_drv_data structure contains driver specific
|
|
|
|
information. Move the declaration into the rt2800lib.h
|
|
|
|
header which is a more logical place for it. Also fix
|
|
|
|
the comment style to avoid checkpatch warning.
|
|
|
|
|
|
|
|
The patch contains no functional changes, it is in
|
|
|
|
preparation for the next patch.
|
|
|
|
|
|
|
|
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
|
|
|
---
|
|
|
|
Changes since v1: ---
|
|
|
|
---
|
|
|
|
drivers/net/wireless/rt2x00/rt2800.h | 13 -------------
|
|
|
|
drivers/net/wireless/rt2x00/rt2800lib.h | 11 +++++++++++
|
|
|
|
2 files changed, 11 insertions(+), 13 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/net/wireless/rt2x00/rt2800lib.h
|
|
|
|
+++ b/drivers/net/wireless/rt2x00/rt2800lib.h
|
2015-07-06 16:26:34 +00:00
|
|
|
@@ -20,6 +20,20 @@
|
2014-04-23 07:52:18 +00:00
|
|
|
#ifndef RT2800LIB_H
|
|
|
|
#define RT2800LIB_H
|
|
|
|
|
2015-07-06 16:26:34 +00:00
|
|
|
+#include "rt2800.h"
|
|
|
|
+
|
2014-04-23 07:52:18 +00:00
|
|
|
+/* RT2800 driver data structure */
|
|
|
|
+struct rt2800_drv_data {
|
|
|
|
+ u8 calibration_bw20;
|
|
|
|
+ u8 calibration_bw40;
|
|
|
|
+ u8 bbp25;
|
|
|
|
+ u8 bbp26;
|
|
|
|
+ u8 txmixer_gain_24g;
|
|
|
|
+ u8 txmixer_gain_5g;
|
|
|
|
+ unsigned int tbtt_tick;
|
2015-07-06 16:26:34 +00:00
|
|
|
+ DECLARE_BITMAP(sta_ids, STA_IDS_SIZE);
|
2014-04-23 07:52:18 +00:00
|
|
|
+};
|
|
|
|
+
|
|
|
|
struct rt2800_ops {
|
|
|
|
void (*register_read)(struct rt2x00_dev *rt2x00dev,
|
|
|
|
const unsigned int offset, u32 *value);
|