1. 20 May, 2020 1 commit
  2. 07 Dec, 2018 5 commits
  3. 26 Nov, 2018 1 commit
  4. 02 Mar, 2018 1 commit
  5. 01 Mar, 2018 3 commits
  6. 12 Feb, 2018 1 commit
  7. 18 Aug, 2017 2 commits
  8. 10 Aug, 2017 1 commit
    • Bhumika Goyal's avatar
      ASoC: codecs: add const to snd_soc_codec_driver structures · a180ba45
      Bhumika Goyal authored
      
      Declare snd_soc_codec_driver structures as const as they are only passed
      as an argument to the function snd_soc_register_codec. This argument is
      of type const, so declare the structures with this property as const.
      In file codecs/sn95031.c, snd_soc_codec_driver structure is also used in
      a copy operation along with getting passed to snd_soc_register_codec.
      So, it can be made const too.
      Done using Coccinelle:
      
      @match disable optional_qualifier@
      identifier s;
      position p;
      @@
      static struct snd_soc_codec_driver s@p={...};
      
      @good1@
      identifier match.s;
      position p;
      @@
      snd_soc_register_codec(...,&s@p,...)
      
      @bad@
      identifier match.s;
      position p!={match.p,good1.p};
      @@
      s@p
      
      @depends on !bad disable optional_qualifier@
      identifier match.s;
      @@
      static
      +const
      struct snd_soc_codec_driver s={...};
      Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      a180ba45
  9. 17 Jul, 2017 1 commit
  10. 22 Jun, 2017 1 commit
  11. 05 Apr, 2017 1 commit
    • Javier Martinez Canillas's avatar
      ASoC: max9867: export OF device ID as module aliases · 56af0e4c
      Javier Martinez Canillas authored
      
      The I2C core always reports a MODALIAS of the form i2c:<foo> even if the
      device was registered via OF, this means that exporting the OF device ID
      table device aliases in the module is not needed. But in order to change
      how the core reports modaliases to user-space, it's better to export it.
      
      While there, move the MODULE_DEVICE_TABLE(i2c, max9867_i2c_id) just next
      to the I2C device table declaration, for consistency with other drivers.
      
      Before this patch:
      
      $ modinfo sound/soc/codecs/snd-soc-max9867.ko | grep alias
      alias:          i2c:max9867
      
      After this patch:
      
      $ modinfo sound/soc/codecs/snd-soc-max9867.ko | grep alias
      alias:          i2c:max9867
      alias:          of:N*T*Cmaxim,max9867C*
      alias:          of:N*T*Cmaxim,max9867
      Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      56af0e4c
  12. 15 Dec, 2016 1 commit
  13. 28 Sep, 2016 1 commit
  14. 08 Aug, 2016 1 commit
  15. 22 Jun, 2016 1 commit
  16. 26 Feb, 2016 1 commit
  17. 24 Feb, 2016 2 commits
  18. 20 Feb, 2016 2 commits
  19. 18 Feb, 2016 2 commits