1. 01 Oct, 2016 1 commit
    • sayli karnik's avatar
      iio: maxim_thermocouple: Align 16 bit big endian value of raw reads · 231147ee
      sayli karnik authored
      Driver was reporting invalid raw read values for MAX6675 on big
      endian architectures. MAX6675 buffered mode is not affected, nor
      is the MAX31855.
      
      The driver was losing a 2 byte read value when it used a 32 bit
      integer buffer to store a 16 bit big endian value. Use big endian
      types to properly align buffers on big endian architectures.
      
      Fixes following sparse endianness warnings:
      warning: cast to restricted __be16
      warning: cast to restricted __be32
      Fixes checkpatch issue:
      CHECK: No space is necessary after a cast
      Signed-off-by: default avatarsayli karnik <karniksayli1995@gmail.com>
      Fixes: 1f25ca11 ("iio: temperature: add support for Maxim
      thermocouple chips")
      Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
      231147ee
  2. 25 Sep, 2016 36 commits
  3. 23 Sep, 2016 3 commits
    • Baoyou Xie's avatar
      Staging: ks7010: remove unused function in ks_wlan_net.c · e4e8d968
      Baoyou Xie authored
      We get 1 warning when building kernel with W=1:
      drivers/staging/ks7010/ks_wlan_net.c:3520:5: warning: no previous prototype for 'ks_wlan_reset' [-Wmissing-prototypes]
      
      In fact, these functions are unused in
      ks_wlan_net.c, but should be removed.
      
      So this patch removes the unused function.
      Signed-off-by: default avatarBaoyou Xie <baoyou.xie@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      e4e8d968
    • Baoyou Xie's avatar
      staging: rtl8192u: remove unused functions in r8192U_core.c · af8b19c4
      Baoyou Xie authored
      We get 2 warnings when building kernel with W=1:
      drivers/staging/rtl8192u/r8192U_core.c:925:12: warning: no previous declaration for 'ieeerate2rtlrate' [-Wmissing-declarations]
      drivers/staging/rtl8192u/r8192U_core.c:958:12: warning: no previous declaration for 'rtl8192_rate2rate' [-Wmissing-declarations]
      drivers/staging/rtl8192u/r8192U_core.c:1322:11: warning: no previous declaration for 'rtl8192_IsWirelessBMode' [-Wmissing-declarations]
      
      In fact, these functions are unused in
      r8192U_core.c, but should be removed.
      
      So this patch removes the unused functions.
      Signed-off-by: default avatarBaoyou Xie <baoyou.xie@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      af8b19c4
    • Baoyou Xie's avatar
      staging: rtl8192u: ieee80211: ieee80211_softmac: mark symbols static where possible · 3590e78a
      Baoyou Xie authored
      We get 5 warnings when building kernel with W=1:
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:287:13: warning: no previous declaration for 'softmac_ps_mgmt_xmit' [-Wmissing-declarations]
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:323:24: warning: no previous declaration for 'ieee80211_probe_req' [-Wmissing-declarations]
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:643:24: warning: no previous declaration for 'ieee80211_authentication_req' [-Wmissing-declarations]
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:981:24: warning: no previous declaration for 'ieee80211_association_req' [-Wmissing-declarations]
      drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:3094:24: warning: no previous declaration for 'ieee80211_disassociate_skb' [-Wmissing-declarations]
      
      In fact, these functions are only used in the file in which they are
      declared and don't need a declaration, but can be made static.
      so this patch marks these functions with 'static'.
      Signed-off-by: default avatarBaoyou Xie <baoyou.xie@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      3590e78a