Skip to content

Commit 662f045

Browse files
andy-shevvinodkoul
authored andcommitted
dmaengine: acpi: Clean up headers
There is a few things done: - include only the headers we are direct user of - when pointer is in use, provide a forward declaration - add missing headers - sort alphabetically Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent c0fecce commit 662f045

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

drivers/dma/acpi-dma.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@
99
* Mika Westerberg <[email protected]>
1010
*/
1111

12+
#include <linux/acpi.h>
13+
#include <linux/acpi_dma.h>
1214
#include <linux/device.h>
1315
#include <linux/dma-mapping.h>
1416
#include <linux/err.h>
15-
#include <linux/module.h>
17+
#include <linux/errno.h>
18+
#include <linux/export.h>
19+
#include <linux/ioport.h>
1620
#include <linux/kernel.h>
1721
#include <linux/list.h>
1822
#include <linux/mutex.h>
19-
#include <linux/slab.h>
20-
#include <linux/ioport.h>
21-
#include <linux/acpi.h>
22-
#include <linux/acpi_dma.h>
2323
#include <linux/property.h>
24+
#include <linux/slab.h>
25+
#include <linux/string.h>
26+
#include <linux/types.h>
2427

2528
static LIST_HEAD(acpi_dma_list);
2629
static DEFINE_MUTEX(acpi_dma_lock);

include/linux/acpi_dma.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
#ifndef __LINUX_ACPI_DMA_H
1212
#define __LINUX_ACPI_DMA_H
1313

14-
#include <linux/list.h>
15-
#include <linux/device.h>
1614
#include <linux/err.h>
1715
#include <linux/dmaengine.h>
16+
#include <linux/types.h>
17+
18+
struct device;
1819

1920
/**
2021
* struct acpi_dma_spec - slave device DMA resources

0 commit comments

Comments
 (0)