1. 09 11月, 2017 1 次提交
  2. 10 8月, 2017 1 次提交
    • B
      ASoC: codecs: add const to snd_soc_codec_driver structures · a180ba45
      Bhumika Goyal 提交于
      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: NBhumika Goyal <bhumirks@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a180ba45
  3. 20 5月, 2017 1 次提交
  4. 14 5月, 2017 1 次提交
  5. 14 3月, 2017 1 次提交
  6. 08 8月, 2016 4 次提交
  7. 05 8月, 2016 1 次提交
  8. 11 5月, 2016 5 次提交
  9. 07 10月, 2015 2 次提交
  10. 05 8月, 2015 1 次提交
  11. 15 7月, 2015 1 次提交
  12. 07 7月, 2015 1 次提交
  13. 18 5月, 2015 1 次提交
  14. 28 4月, 2015 1 次提交
  15. 15 4月, 2014 1 次提交
  16. 11 3月, 2014 1 次提交
  17. 20 2月, 2014 1 次提交
  18. 13 1月, 2014 1 次提交
  19. 09 5月, 2013 1 次提交
  20. 15 2月, 2013 1 次提交