]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
firmware: cs_dsp: tidy includes in cs_dsp.c and cs_dsp.h
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 15 Nov 2021 12:02:15 +0000 (12:02 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 15 Nov 2021 19:25:24 +0000 (19:25 +0000)
This patch removes unused included header files and moves others into
cs_dsp.h to ensure that types referenced in the header file are properly
described to prevent compiler warnings.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211115120215.56824-1-simont@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/cs_dsp.c
include/linux/firmware/cirrus/cs_dsp.h

index 948dd8382686b1e20c525e6070cd4f554167c8d9..1a0c6c793f6a7a07b4f4076243e37e283682601c 100644 (file)
 #include <linux/ctype.h>
 #include <linux/debugfs.h>
 #include <linux/delay.h>
-#include <linux/device.h>
-#include <linux/firmware.h>
-#include <linux/interrupt.h>
-#include <linux/list.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/regmap.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
-#include <linux/workqueue.h>
 
 #include <linux/firmware/cirrus/cs_dsp.h>
 #include <linux/firmware/cirrus/wmfw.h>
index 9ad9eaaaa5527cf04bc2dfd14071c33931b316d9..3a54b1afc48fc94b33a9d71602dab5690b66df20 100644 (file)
 #ifndef __CS_DSP_H
 #define __CS_DSP_H
 
+#include <linux/device.h>
+#include <linux/firmware.h>
+#include <linux/list.h>
+#include <linux/regmap.h>
+
 #define CS_ADSP2_REGION_0 BIT(0)
 #define CS_ADSP2_REGION_1 BIT(1)
 #define CS_ADSP2_REGION_2 BIT(2)