1. 15 Jul, 2020 3 commits
    • Zhixu Zhao's avatar
      staging: gasket: core: Fix a coding style issue in gasket_core.c · a7a49357
      Zhixu Zhao authored
      A coding alignment issue is found by checkpatch.pl.
      Fix it by using a temporary for gasket_dev->bar_data[bar_num].
      Signed-off-by: default avatarZhixu Zhao <zhixu001@126.com>
      Link: https://lore.kernel.org/r/20200715133313.16327-1-zhixu001@126.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a7a49357
    • Suraj Upadhyay's avatar
      staging: comedi: s626: Remove pci-dma-compat wrapper APIs. · d1e8c52a
      Suraj Upadhyay authored
      The legacy API wrappers in include/linux/pci-dma-compat.h
      should go away as it creates unnecessary midlayering
      for include/linux/dma-mapping.h APIs, instead use dma-mapping.h
      APIs directly.
      
      The patch has been generated with the coccinelle script below
      and compile-tested.
      
      @@@@
      - PCI_DMA_BIDIRECTIONAL
      + DMA_BIDIRECTIONAL
      
      @@@@
      - PCI_DMA_TODEVICE
      + DMA_TO_DEVICE
      
      @@@@
      - PCI_DMA_FROMDEVICE
      + DMA_FROM_DEVICE
      
      @@@@
      - PCI_DMA_NONE
      + DMA_NONE
      
      @@ expression E1, E2, E3; @@
      - pci_alloc_consistent(E1, E2, E3)
      + dma_alloc_coherent(&E1->dev, E2, E3, GFP_ATOMIC)
      
      @@ expression E1, E2, E3; @@
      - pci_zalloc_consistent(E1, E2, E3)
      + dma_alloc_coherent(&E1->dev, E2, E3, GFP_ATOMIC)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_free_consistent(E1, E2, E3, E4)
      + dma_free_coherent(&E1->dev, E2, E3, E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_map_single(E1, E2, E3, E4)
      + dma_map_single(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_unmap_single(E1, E2, E3, E4)
      + dma_unmap_single(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4, E5; @@
      - pci_map_page(E1, E2, E3, E4, E5)
      + dma_map_page(&E1->dev, E2, E3, E4, (enum dma_data_direction)E5)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_unmap_page(E1, E2, E3, E4)
      + dma_unmap_page(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_map_sg(E1, E2, E3, E4)
      + dma_map_sg(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_unmap_sg(E1, E2, E3, E4)
      + dma_unmap_sg(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_dma_sync_single_for_cpu(E1, E2, E3, E4)
      + dma_sync_single_for_cpu(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_dma_sync_single_for_device(E1, E2, E3, E4)
      + dma_sync_single_for_device(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_dma_sync_sg_for_cpu(E1, E2, E3, E4)
      + dma_sync_sg_for_cpu(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2, E3, E4; @@
      - pci_dma_sync_sg_for_device(E1, E2, E3, E4)
      + dma_sync_sg_for_device(&E1->dev, E2, E3, (enum dma_data_direction)E4)
      
      @@ expression E1, E2; @@
      - pci_dma_mapping_error(E1, E2)
      + dma_mapping_error(&E1->dev, E2)
      
      @@ expression E1, E2; @@
      - pci_set_consistent_dma_mask(E1, E2)
      + dma_set_coherent_mask(&E1->dev, E2)
      
      @@ expression E1, E2; @@
      - pci_set_dma_mask(E1, E2)
      + dma_set_mask(&E1->dev, E2)
      Signed-off-by: default avatarSuraj Upadhyay <usuraj35@gmail.com>
      Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Link: https://lore.kernel.org/r/20200713143253.GA14953@blackclownSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d1e8c52a
    • Baidyanath Kundu's avatar
      Staging: vc04_services: Fix unsigned int warnings · 1e5f7325
      Baidyanath Kundu authored
      This patch fixes the checkpatch.pl warning:
      
      WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
      Signed-off-by: default avatarBaidyanath Kundu <kundubaidya99@gmail.com>
      Link: https://lore.kernel.org/r/20200713143653.32332-1-kundubaidya99@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1e5f7325
  2. 13 Jul, 2020 10 commits
  3. 10 Jul, 2020 16 commits
  4. 03 Jul, 2020 11 commits