1. 31 Oct, 2020 6 commits
  2. 18 Oct, 2020 1 commit
  3. 11 Oct, 2020 1 commit
  4. 10 Oct, 2020 21 commits
  5. 09 Oct, 2020 1 commit
  6. 07 Oct, 2020 6 commits
  7. 06 Oct, 2020 1 commit
  8. 05 Oct, 2020 3 commits
    • Coiby Xu's avatar
      staging: greybus: use __force when assigning __u8 value to snd_ctl_elem_type_t · 6c75a92a
      Coiby Xu authored
      (struct gb_audio_ctl_elem_info*)->type has the type of __u8 so there is no
      concern about the byte order. __force is safe to use.
      
      Found by sparse,
      
      $ make C=2 drivers/staging/greybus/
      drivers/staging/greybus/audio_topology.c:185:24: warning: cast to restricted snd_ctl_elem_type_t
      Suggested-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarCoiby Xu <coiby.xu@gmail.com>
      Link: https://lore.kernel.org/r/20201002233057.74462-3-coiby.xu@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      6c75a92a
    • Coiby Xu's avatar
      staging: greybus: codecs: use SNDRV_PCM_FMTBIT_S16_LE for format bitmask · 8bb5b59d
      Coiby Xu authored
      snd_soc_pcm_stream.formats should use the bitmask SNDRV_PCM_FMTBIT_*
      instead of the sequential integers SNDRV_PCM_FORMAT_* as explained by
      commit e712bfca
      ("ASoC: codecs: use SNDRV_PCM_FMTBIT_* for format bitmask").
      
      Found by sparse,
      
      $ make C=2 drivers/staging/greybus/
      drivers/staging/greybus/audio_codec.c:691:36: warning: incorrect type in initializer (different base types)
      drivers/staging/greybus/audio_codec.c:691:36:    expected unsigned long long [usertype] formats
      drivers/staging/greybus/audio_codec.c:691:36:    got restricted snd_pcm_format_t [usertype]
      drivers/staging/greybus/audio_codec.c:701:36: warning: incorrect type in initializer (different base types)
      drivers/staging/greybus/audio_codec.c:701:36:    expected unsigned long long [usertype] formats
      drivers/staging/greybus/audio_codec.c:701:36:    got restricted snd_pcm_format_t [usertype]
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarCoiby Xu <coiby.xu@gmail.com>
      Link: https://lore.kernel.org/r/20201002233057.74462-2-coiby.xu@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8bb5b59d
    • Coiby Xu's avatar
      staging: greybus: fix warnings about endianness detected by sparse · 50a390ad
      Coiby Xu authored
      This patch fix the following warnings from sparse,
      
      $ make C=2 drivers/staging/greybus/
      drivers/staging/greybus/audio_module.c:222:25: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_module.c:222:25:    expected restricted __le16 [usertype] data_cport
      drivers/staging/greybus/audio_module.c:222:25:    got unsigned short [usertype] intf_cport_id
      drivers/staging/greybus/audio_topology.c:460:40: warning: restricted __le32 degrades to integer
      drivers/staging/greybus/audio_topology.c:691:41: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_topology.c:691:41:    expected unsigned int access
      drivers/staging/greybus/audio_topology.c:691:41:    got restricted __le32 [usertype] access
      drivers/staging/greybus/audio_topology.c:746:44: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_topology.c:746:44:    expected unsigned int
      drivers/staging/greybus/audio_topology.c:746:44:    got restricted __le32
      drivers/staging/greybus/audio_topology.c:748:52: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_topology.c:748:52:    expected unsigned int
      drivers/staging/greybus/audio_topology.c:748:52:    got restricted __le32
      drivers/staging/greybus/audio_topology.c:802:42: warning: restricted __le32 degrades to integer
      drivers/staging/greybus/audio_topology.c:805:50: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_topology.c:805:50:    expected restricted __le32
      drivers/staging/greybus/audio_topology.c:805:50:    got unsigned int
      drivers/staging/greybus/audio_topology.c:814:50: warning: restricted __le32 degrades to integer
      drivers/staging/greybus/audio_topology.c:817:58: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_topology.c:817:58:    expected restricted __le32
      drivers/staging/greybus/audio_topology.c:817:58:    got unsigned int
      drivers/staging/greybus/audio_topology.c:889:25: warning: incorrect type in assignment (different base types)
      drivers/staging/greybus/audio_topology.c:889:25:    expected unsigned int access
      drivers/staging/greybus/audio_topology.c:889:25:    got restricted __le32 [usertype] access
      Suggested-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarCoiby Xu <coiby.xu@gmail.com>
      Link: https://lore.kernel.org/r/20201002233057.74462-1-coiby.xu@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      50a390ad