1. 20 Oct, 2016 1 commit
  2. 22 Aug, 2016 1 commit
  3. 04 Aug, 2016 1 commit
    • Krzysztof Kozlowski's avatar
      dma-mapping: use unsigned long for dma_attrs · 00085f1e
      Krzysztof Kozlowski authored
      The dma-mapping core and the implementations do not change the DMA
      attributes passed by pointer.  Thus the pointer can point to const data.
      However the attributes do not have to be a bitfield.  Instead unsigned
      long will do fine:
      
      1. This is just simpler.  Both in terms of reading the code and setting
         attributes.  Instead of initializing local attributes on the stack
         and passing pointer to it to dma_set_attr(), just set the bits.
      
      2. It brings safeness and checking for const correctness because the
         attributes are passed by value.
      
      Semantic patches for this change (at least most of them):
      
          virtual patch
          virtual context
      
          @r@
          identifier f, attrs;
      
          @@
          f(...,
          - struct dma_attrs *attrs
          + unsigned long attrs
          , ...)
          {
          ...
          }
      
          @@
          identifier r.f;
          @@
          f(...,
          - NULL
          + 0
           )
      
      and
      
          // Options: --all-includes
          virtual patch
          virtual context
      
          @r@
          identifier f, attrs;
          type t;
      
          @@
          t f(..., struct dma_attrs *attrs);
      
          @@
          identifier r.f;
          @@
          f(...,
          - NULL
          + 0
           )
      
      Link: http://lkml.kernel.org/r/1468399300-5399-2-git-send-email-k.kozlowski@samsung.comSigned-off-by: 's avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      Acked-by: 's avatarVineet Gupta <vgupta@synopsys.com>
      Acked-by: 's avatarRobin Murphy <robin.murphy@arm.com>
      Acked-by: 's avatarHans-Christian Noren Egtvedt <egtvedt@samfundet.no>
      Acked-by: Mark Salter <msalter@redhat.com> [c6x]
      Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> [cris]
      Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> [drm]
      Reviewed-by: 's avatarBart Van Assche <bart.vanassche@sandisk.com>
      Acked-by: Joerg Roedel <jroedel@suse.de> [iommu]
      Acked-by: Fabien Dessenne <fabien.dessenne@st.com> [bdisp]
      Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com> [vb2-core]
      Acked-by: David Vrabel <david.vrabel@citrix.com> [xen]
      Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> [xen swiotlb]
      Acked-by: Joerg Roedel <jroedel@suse.de> [iommu]
      Acked-by: Richard Kuo <rkuo@codeaurora.org> [hexagon]
      Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k]
      Acked-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> [s390]
      Acked-by: 's avatarBjorn Andersson <bjorn.andersson@linaro.org>
      Acked-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no> [avr32]
      Acked-by: Vineet Gupta <vgupta@synopsys.com> [arc]
      Acked-by: Robin Murphy <robin.murphy@arm.com> [arm64 and dma-iommu]
      Signed-off-by: 's avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: 's avatarLinus Torvalds <torvalds@linux-foundation.org>
      00085f1e
  4. 23 Jul, 2016 14 commits
  5. 19 Jul, 2016 1 commit
  6. 17 Jul, 2016 4 commits
    • Mauro Carvalho Chehab's avatar
      [media] doc-rst: Fix conversion for MC core functions · 74604b73
      Mauro Carvalho Chehab authored
      There were lots of issues at the media controller side,
      after the conversion:
      
      - Some documentation at the header files weren't using the
        kernel-doc start block;
      
      - Now, the C files with the exported symbols also need to be
        added. So, all headers need to be included twice: one to
        get the structs/enums/.. and another one for the functions;
      
      - Notes should use the ReST tag, as kernel-doc doesn't
        recognizes it anymore;
      
      - Identation needs to be fixed, as ReST uses it to identify
        when a format "tag" ends.
      
      - Fix the cross-references at the media controller description.
      Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      74604b73
    • Mauro Carvalho Chehab's avatar
      [media] doc-rst: Fix conversion for v4l2 core functions · 89cb3ddb
      Mauro Carvalho Chehab authored
      The conversion from DocBook lead into some conversion issues,
      basically due to the lack of proper support at kernel-doc.
      
      So, address them:
      
      - Now, the C files with the exported symbols also need to be
        added. So, all headers need to be included twice: one to
        get the structs/enums/.. and another one for the functions;
      
      - Notes should use the ReST tag, as kernel-doc doesn't
        recognizes it anymore;
      
      - Identation needs to be fixed, as ReST uses it to identify
        when a format "tag" ends.
      
      - kernel-doc doesn't escape things like *pointer, so we
        need to manually add a escape char before it.
      
      - On some cases, kernel-doc conversion requires violating
        the 80-cols, as otherwise it won't properly parse the
        source code.
      Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      89cb3ddb
    • Mauro Carvalho Chehab's avatar
      [media] doc-rst: Fix issues with RC documentation · 5b6137dc
      Mauro Carvalho Chehab authored
      The kernel-doc script is now broken if it doesn't find all
      exported symbols documented.
      Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      5b6137dc
    • Mauro Carvalho Chehab's avatar
      [media] doc-rst: Convert media API to rst · d26a5d43
      Mauro Carvalho Chehab authored
      Move the contents of the media section at
      DocBooks/DocBook/device-drivers.tmpl to a new ReST book.
      
      For now, the contents is kept as-is. Next patches will fix
      the warnings and add cross-references that were removed due to
      the conversion.
      Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      d26a5d43
  7. 15 Jul, 2016 1 commit
  8. 12 Jul, 2016 2 commits
  9. 09 Jul, 2016 1 commit
  10. 08 Jul, 2016 4 commits
  11. 28 Jun, 2016 4 commits
  12. 22 Jun, 2016 1 commit
  13. 20 Jun, 2016 1 commit
  14. 17 Jun, 2016 2 commits
  15. 16 Jun, 2016 1 commit
    • Mauro Carvalho Chehab's avatar
      [media] media-devnode.h: Fix documentation · 0db5c799
      Mauro Carvalho Chehab authored
      Two parameters were documented with a wrong name, and a struct
      device pointer description was missing.
      
      That caused the following warnings, when building documentation:
      
      include/media/media-devnode.h:102: warning: No description found for parameter 'media_dev'
      include/media/media-devnode.h:126: warning: No description found for parameter 'mdev'
      include/media/media-devnode.h:126: warning: Excess function parameter 'media_dev' description in 'media_devnode_register'
      
      Rename the description, to match the function parameter and fix
      Documentation.
      
      No funcional changes.
      Signed-off-by: 's avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
      0db5c799
  16. 15 Jun, 2016 1 commit