600-0001-rt2x00-rt2800lib-move-rt2800_drv_data-declaration-in.patch 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. From 7a69da907de668fb22a30ae218062d6f081864ea Mon Sep 17 00:00:00 2001
  2. From: Gabor Juhos <juhosg@openwrt.org>
  3. Date: Sat, 17 Aug 2013 19:31:41 +0200
  4. Subject: [PATCH] rt2x00: rt2800lib: move rt2800_drv_data declaration into
  5. rt2800lib.h
  6. The rt2800_drv_data structure contains driver specific
  7. information. Move the declaration into the rt2800lib.h
  8. header which is a more logical place for it. Also fix
  9. the comment style to avoid checkpatch warning.
  10. The patch contains no functional changes, it is in
  11. preparation for the next patch.
  12. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  13. ---
  14. Changes since v1: ---
  15. ---
  16. drivers/net/wireless/ralink/rt2x00/rt2800.h | 13 -------------
  17. drivers/net/wireless/ralink/rt2x00/rt2800lib.h | 11 +++++++++++
  18. 2 files changed, 11 insertions(+), 13 deletions(-)
  19. --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.h
  20. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.h
  21. @@ -20,6 +20,20 @@
  22. #ifndef RT2800LIB_H
  23. #define RT2800LIB_H
  24. +#include "rt2800.h"
  25. +
  26. +/* RT2800 driver data structure */
  27. +struct rt2800_drv_data {
  28. + u8 calibration_bw20;
  29. + u8 calibration_bw40;
  30. + u8 bbp25;
  31. + u8 bbp26;
  32. + u8 txmixer_gain_24g;
  33. + u8 txmixer_gain_5g;
  34. + unsigned int tbtt_tick;
  35. + DECLARE_BITMAP(sta_ids, STA_IDS_SIZE);
  36. +};
  37. +
  38. struct rt2800_ops {
  39. void (*register_read)(struct rt2x00_dev *rt2x00dev,
  40. const unsigned int offset, u32 *value);
  41. --- a/drivers/net/wireless/ralink/rt2x00/rt2800.h
  42. +++ b/drivers/net/wireless/ralink/rt2x00/rt2800.h
  43. @@ -2969,18 +2969,4 @@ enum rt2800_eeprom_word {
  44. #define WCID_END 222
  45. #define STA_IDS_SIZE (WCID_END - WCID_START + 2)
  46. -/*
  47. - * RT2800 driver data structure
  48. - */
  49. -struct rt2800_drv_data {
  50. - u8 calibration_bw20;
  51. - u8 calibration_bw40;
  52. - u8 bbp25;
  53. - u8 bbp26;
  54. - u8 txmixer_gain_24g;
  55. - u8 txmixer_gain_5g;
  56. - unsigned int tbtt_tick;
  57. - DECLARE_BITMAP(sta_ids, STA_IDS_SIZE);
  58. -};
  59. -
  60. #endif /* RT2800_H */