319-v4.12-0040-brcmfmac-rename-brcmf_fws_-de-init-to-brcmf_fws-at-d.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From ffb9f18ad8f0e5e1d88c56478bf24e6464c96eee Mon Sep 17 00:00:00 2001
  2. From: Arend Van Spriel <arend.vanspriel@broadcom.com>
  3. Date: Thu, 6 Apr 2017 13:14:37 +0100
  4. Subject: [PATCH] brcmfmac: rename brcmf_fws_{de,}init to brcmf_fws{at,de}tach
  5. This is a non-functional change to align the fwsignal module to
  6. the naming pattern used throughout the driver.
  7. Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
  8. Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
  9. Reviewed-by: Franky Lin <franky.lin@broadcom.com>
  10. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
  11. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  12. ---
  13. drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c | 4 ++--
  14. drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c | 6 +++---
  15. drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h | 4 ++--
  16. 3 files changed, 7 insertions(+), 7 deletions(-)
  17. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
  18. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c
  19. @@ -420,7 +420,7 @@ brcmf_proto_bcdc_reset_if(struct brcmf_i
  20. static int
  21. brcmf_proto_bcdc_init_done(struct brcmf_pub *drvr)
  22. {
  23. - return brcmf_fws_init(drvr);
  24. + return brcmf_fws_attach(drvr);
  25. }
  26. int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr)
  27. @@ -464,7 +464,7 @@ fail:
  28. void brcmf_proto_bcdc_detach(struct brcmf_pub *drvr)
  29. {
  30. - brcmf_fws_deinit(drvr);
  31. + brcmf_fws_detach(drvr);
  32. kfree(drvr->proto->pd);
  33. drvr->proto->pd = NULL;
  34. }
  35. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c
  36. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c
  37. @@ -2308,7 +2308,7 @@ static int brcmf_debugfs_fws_stats_read(
  38. }
  39. #endif
  40. -int brcmf_fws_init(struct brcmf_pub *drvr)
  41. +int brcmf_fws_attach(struct brcmf_pub *drvr)
  42. {
  43. struct brcmf_fws_info *fws;
  44. struct brcmf_if *ifp;
  45. @@ -2408,11 +2408,11 @@ int brcmf_fws_init(struct brcmf_pub *drv
  46. return 0;
  47. fail:
  48. - brcmf_fws_deinit(drvr);
  49. + brcmf_fws_detach(drvr);
  50. return rc;
  51. }
  52. -void brcmf_fws_deinit(struct brcmf_pub *drvr)
  53. +void brcmf_fws_detach(struct brcmf_pub *drvr)
  54. {
  55. struct brcmf_fws_info *fws = drvr->fws;
  56. --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h
  57. +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.h
  58. @@ -18,8 +18,8 @@
  59. #ifndef FWSIGNAL_H_
  60. #define FWSIGNAL_H_
  61. -int brcmf_fws_init(struct brcmf_pub *drvr);
  62. -void brcmf_fws_deinit(struct brcmf_pub *drvr);
  63. +int brcmf_fws_attach(struct brcmf_pub *drvr);
  64. +void brcmf_fws_detach(struct brcmf_pub *drvr);
  65. bool brcmf_fws_queue_skbs(struct brcmf_fws_info *fws);
  66. bool brcmf_fws_fc_active(struct brcmf_fws_info *fws);
  67. void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb);