1. 21 10月, 2016 3 次提交
  2. 20 9月, 2016 1 次提交
    • J
      [media] usb: constify snd_pcm_ops structures · 22511cfa
      Julia Lawall 提交于
      Check for snd_pcm_ops structures that are only stored in the ops field of a
      snd_soc_platform_driver structure or passed as the third argument to
      snd_pcm_set_ops.  The corresponding field or parameter is declared const,
      so snd_pcm_ops structures that have this property can be declared as const
      also.
      
      The semantic patch that makes this change is as follows:
      (http://coccinelle.lip6.fr/)
      
      // <smpl>
      @r disable optional_qualifier@
      identifier i;
      position p;
      @@
      static struct snd_pcm_ops i@p = { ... };
      
      @ok1@
      identifier r.i;
      struct snd_soc_platform_driver e;
      position p;
      @@
      e.ops = &i@p;
      
      @ok2@
      identifier r.i;
      expression e1, e2;
      position p;
      @@
      snd_pcm_set_ops(e1, e2, &i@p)
      
      @bad@
      position p != {r.p,ok1.p,ok2.p};
      identifier r.i;
      struct snd_pcm_ops e;
      @@
      e@i@p
      
      @depends on !bad disable optional_qualifier@
      identifier r.i;
      @@
      static
      +const
       struct snd_pcm_ops i = { ... };
      // </smpl>
      Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      22511cfa
  3. 31 8月, 2016 1 次提交
  4. 24 8月, 2016 1 次提交
  5. 24 12月, 2014 3 次提交
  6. 05 12月, 2014 1 次提交
  7. 26 9月, 2014 1 次提交
  8. 24 9月, 2014 1 次提交
  9. 24 5月, 2014 1 次提交
  10. 14 3月, 2014 1 次提交
  11. 11 3月, 2014 1 次提交
  12. 03 3月, 2014 1 次提交
  13. 14 2月, 2014 1 次提交
  14. 07 2月, 2014 1 次提交
  15. 05 2月, 2014 1 次提交
  16. 15 1月, 2014 11 次提交
  17. 12 1月, 2014 7 次提交
  18. 10 1月, 2014 2 次提交
  19. 07 1月, 2014 1 次提交