[PATCH 11/13] staging: rtl8712: changed cast to __le16

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Changed u16 to __le16 Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/ieee80211.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dri

[PATCH 05/13] staging: rtl8712: changed GetFrameSubType macro

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. GetFrameSubType and GetFrameType should cast to __le16. Furthermore GetFramSubType should use le16_to_cpu instead of cpu_to_le16. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/sta

[PATCH 11/13] staging: rtl8712: changed cast to __le16

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Changed u16 to __le16 Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/ieee80211.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8712/ieee80211.c b/drivers/staging/rtl8712/ieee80211.c

[PATCH 05/13] staging: rtl8712: changed GetFrameSubType macro

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. GetFrameSubType and GetFrameType should cast to __le16. Furthermore GetFramSubType should use le16_to_cpu instead of cpu_to_le16. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_security.c | 4 ++-- drivers/staging/rtl8712/wifi.h

[PATCH 12/13] staging: rtl8712: changed u16 to __be16

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Just changed u16 to __be16 and typecasts. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl8712_recv.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

[PATCH 02/13] staging: rtl8712: changed variables to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". Changed struct tx_desc members to __le32 and pcmdbuf to __le32. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl8712_cmd.c | 5

[PATCH 03/13] staging: rtl8712: changed function argument to __le32

2016-12-20 Thread Jannik Becher
Fixed a sparse warning "cast to restricted __le32". Function argument is of type __le32. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl8712_cmd.c | 2 +- drivers/staging/rtl87

[PATCH 01/13] staging: rtl8712: changed struct members to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct sitesurvey_parm uses little endian members. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl871x_cmd.h | 6 +++--- 1 file chang

[PATCH 10/13] staging: rtl8712: changed u32 to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warnings. Deleted cpu_to_le32() for enum. I'm not sure why it was there. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl871x_event.h | 2 +- drivers/staging/rtl8712/rtl871x_

[PATCH 12/13] staging: rtl8712: changed u16 to __be16

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Just changed u16 to __be16 and typecasts. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl8712_recv.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers

[PATCH 02/13] staging: rtl8712: changed variables to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". Changed struct tx_desc members to __le32 and pcmdbuf to __le32. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl8712_cmd.c | 5 +++-- drivers/staging/rtl8712/rtl8712_xmit.h | 16 ---

[PATCH 03/13] staging: rtl8712: changed function argument to __le32

2016-12-20 Thread Jannik Becher
Fixed a sparse warning "cast to restricted __le32". Function argument is of type __le32. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl8712_cmd.c | 2 +- drivers/staging/rtl8712/rtl8712_event.h | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH 01/13] staging: rtl8712: changed struct members to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct sitesurvey_parm uses little endian members. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_cmd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/stagi

[PATCH 10/13] staging: rtl8712: changed u32 to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warnings. Deleted cpu_to_le32() for enum. I'm not sure why it was there. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_event.h | 2 +- drivers/staging/rtl8712/rtl871x_mlme.c | 15 +++ drivers/staging/rtl8712/wlan_bssdef.h

[PATCH 04/13] staging: rtl8712: casted variables to __le32

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Casting __le32 variables to the right type. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl871x_security.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deleti

[PATCH 04/13] staging: rtl8712: casted variables to __le32

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Casting __le32 variables to the right type. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_security.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8712/rtl871x_security.c b

[PATCH 06/13] staging: rtl8712: changed typecast to __le

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Changed uint to __le16 and __le32. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/hal_init.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --g

[PATCH 06/13] staging: rtl8712: changed typecast to __le

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Changed uint to __le16 and __le32. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/hal_init.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712

[PATCH 08/13] staging: rtl8712: changed uint to __le32

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Just changed uint to __le32. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/usb_ops_linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dri

[PATCH 08/13] staging: rtl8712: changed uint to __le32

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Just changed uint to __le32. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/usb_ops_linux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/usb_ops_linux.c b/drivers/staging/rtl8712

[PATCH 09/13] staging: rtl8712: fixed little endian problem

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Using function le16_to_cpus() to avoid double assignment. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 13/13] staging: rtl8712: used a better macro

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Using be16_to_cpus() to avoid double assignment. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/rtl871x_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 00/13] staging: rtl8712: Fixed sparse warnings

2016-12-20 Thread Jannik Becher
In this set of patches I fixed most sparse endian warnings for the rtl8712 driver.

[PATCH 13/13] staging: rtl8712: used a better macro

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Using be16_to_cpus() to avoid double assignment. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/rtl871x_recv.c b/drivers/staging

[PATCH 00/13] staging: rtl8712: Fixed sparse warnings

2016-12-20 Thread Jannik Becher
In this set of patches I fixed most sparse endian warnings for the rtl8712 driver.

[PATCH 09/13] staging: rtl8712: fixed little endian problem

2016-12-20 Thread Jannik Becher
Fixed a sparse warning. Using function le16_to_cpus() to avoid double assignment. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712

[PATCH 07/13] staging: rtl8712: changed u32 to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Just changed u32 to __le32. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> Tested-by: Larry Finger <larry.fin...@lwfinger.net> --- drivers/staging/rtl8712/usb_ops.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --g

[PATCH 07/13] staging: rtl8712: changed u32 to __le32

2016-12-20 Thread Jannik Becher
Fixed sparse warning. Just changed u32 to __le32. Signed-off-by: Jannik Becher Tested-by: Larry Finger --- drivers/staging/rtl8712/usb_ops.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drivers/staging/rtl8712/usb_ops.c b/drivers/staging/rtl8712

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 i

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-)

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 i

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-)

[PATCH V2] staging: wlan-ng: remove unnecessary spaces before casts

2016-09-22 Thread Jannik Becher
Fixed a coding style issue by removing unnecessary spaces before casts. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/p80211netdev.c | 12 ++-- drivers/staging/wlan-ng/p80211req.c

[PATCH V2] staging: wlan-ng: remove unnecessary spaces before casts

2016-09-22 Thread Jannik Becher
Fixed a coding style issue by removing unnecessary spaces before casts. Signed-off-by: Jannik Becher --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/p80211netdev.c | 12 ++-- drivers/staging/wlan-ng/p80211req.c| 16 drivers/staging/wlan

[PATCH] drivers: wlan-ng: fixed a coding style issue

2016-09-22 Thread Jannik Becher
removed a space after a cast to obtain the coding style. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/p80211netdev.c | 12 ++-- drivers/staging/wlan-ng/p80211req.c| 16 d

[PATCH] drivers: wlan-ng: fixed a coding style issue

2016-09-22 Thread Jannik Becher
removed a space after a cast to obtain the coding style. Signed-off-by: Jannik Becher --- drivers/staging/wlan-ng/hfa384x.h | 4 ++-- drivers/staging/wlan-ng/p80211netdev.c | 12 ++-- drivers/staging/wlan-ng/p80211req.c| 16 drivers/staging/wlan-ng/prism2fw.c

[PATCH] drivers: wlan-ng: fixed a coding style issue

2016-09-22 Thread Jannik Becher
removed a space after a cast to obtain the coding style. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/wlan-ng/p80211req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p8021

[PATCH] drivers: wlan-ng: fixed a coding style issue

2016-09-22 Thread Jannik Becher
removed a space after a cast to obtain the coding style. Signed-off-by: Jannik Becher --- drivers/staging/wlan-ng/p80211req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p80211req.c index 40627d5..ecd2fff

[PATCH] drivers: wlan-ng: fixed a coding style issue

2016-09-22 Thread Jannik Becher
changed comparison "wlandev == NULL" to "!wlandev" to obtain the coding style. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/wlan-ng/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/cfg

[PATCH] drivers: wlan-ng: fixed a coding style issue

2016-09-22 Thread Jannik Becher
changed comparison "wlandev == NULL" to "!wlandev" to obtain the coding style. Signed-off-by: Jannik Becher --- drivers/staging/wlan-ng/cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan

[PATCH] drivers: hackrf: fixed a coding style issue

2016-08-21 Thread Jannik Becher
changed 'unsigned' to 'unsigned int' to obtain the coding style. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/media/usb/hackrf/hackrf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/ha

[PATCH] drivers: hackrf: fixed a coding style issue

2016-08-21 Thread Jannik Becher
changed 'unsigned' to 'unsigned int' to obtain the coding style. Signed-off-by: Jannik Becher --- drivers/media/usb/hackrf/hackrf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index b1e229a..fc67648

[PATCH] Media: usb: hackrf: fixed a style issue

2016-02-27 Thread Jannik Becher
Fixed a coding style issue. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/media/usb/hackrf/hackrf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index 9e700ca..186ef2d 100644 --- a/drivers

[PATCH] Media: usb: hackrf: fixed a style issue

2016-02-27 Thread Jannik Becher
Fixed a coding style issue. Signed-off-by: Jannik Becher --- drivers/media/usb/hackrf/hackrf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index 9e700ca..186ef2d 100644 --- a/drivers/media/usb/hackrf/hackrf.c +++ b

[PATCH] Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue

2016-02-21 Thread Jannik Becher
Fixed a coding style issue. Signed-off-by: Jannik Becher <becher.jan...@gmail.com> --- drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/hfi1/verbs_mcast.c b/drivers/staging/rdma/hfi1/verbs_mcast.c

[PATCH] Staging: rdma: hfi1: verbs_mcast: fixed a brace coding style issue

2016-02-21 Thread Jannik Becher
Fixed a coding style issue. Signed-off-by: Jannik Becher --- drivers/staging/rdma/hfi1/verbs_mcast.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rdma/hfi1/verbs_mcast.c b/drivers/staging/rdma/hfi1/verbs_mcast.c index afc6b4c..c45d4b1 100644