Skip to contentSkip to conversation

dmaengine: dw: Don't include unneeded header to platform data header

PATCH Applied Andy Shevchenko 2 participants 2 messages Jul 21, 2020 – Jul 27, 2020

Subsystems (2)
lore
Share & tools
lore

Andy Shevchenko

author reviewer
#0 lore raw

PATCH 1/1 dmaengine: dw: Don't include unneeded header to platform data header

Including device.h is too much for the dma-dw.h platform data header. Replace it with the headers of which dma-dw.h is direct user.

---
 include/linux/platform_data/dma-dw.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
include/linux/platform_data/dma-dw.h +4 -1
index f3eaf9ec00a1..f02a16dfb44b 100644
@@ -8,11 +8,14 @@
 #ifndef _PLATFORM_DATA_DMA_DW_H
 #define _PLATFORM_DATA_DMA_DW_H
 
-#include <linux/device.h>
+#include <linux/bits.h>
+#include <linux/types.h>
 
 #define DW_DMA_MAX_NR_MASTERS	4
 #define DW_DMA_MAX_NR_CHANNELS	8
 
+struct device;
+
 /**
  * struct dw_dma_slave - Controller-specific information about a slave
  *
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Andy Shevchenko

Including device.h is too much for the dma-dw.h platform data header. Replace it with the headers of which dma-dw.h is direct user.

Applied, thanks

Signature · 1 line
~Vinod