Skip to content

Commit a936a91

Browse files
andy-shevlag-linaro
authored andcommitted
mfd: intel-lpss: Adjust header inclusions
Adjust header inclusions to avoid "proxy" headers and explicitly include what we are using. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 9ffe4c1 commit a936a91

File tree

3 files changed

+23
-8
lines changed

3 files changed

+23
-8
lines changed

drivers/mfd/intel-lpss-acpi.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@
88
* Mika Westerberg <[email protected]>
99
*/
1010

11+
#include <linux/device.h>
12+
#include <linux/gfp_types.h>
1113
#include <linux/ioport.h>
12-
#include <linux/kernel.h>
1314
#include <linux/mod_devicetable.h>
1415
#include <linux/module.h>
1516
#include <linux/pm_runtime.h>
1617
#include <linux/platform_device.h>
1718
#include <linux/property.h>
19+
1820
#include <linux/pxa2xx_ssp.h>
1921

22+
#include <asm/errno.h>
23+
2024
#include "intel-lpss.h"
2125

2226
static const struct property_entry spt_spi_properties[] = {

drivers/mfd/intel-lpss-pci.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@
88
* Mika Westerberg <[email protected]>
99
*/
1010

11-
#include <linux/ioport.h>
12-
#include <linux/kernel.h>
11+
#include <linux/device.h>
12+
#include <linux/gfp_types.h>
13+
#include <linux/mod_devicetable.h>
1314
#include <linux/module.h>
1415
#include <linux/pci.h>
1516
#include <linux/pm_runtime.h>
1617
#include <linux/property.h>
18+
1719
#include <linux/pxa2xx_ssp.h>
1820

21+
#include <asm/errno.h>
22+
1923
#include "intel-lpss.h"
2024

2125
/* Some DSDTs have an unused GEXP ACPI device conflicting with I2C4 resources */

drivers/mfd/intel-lpss.c

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,33 @@
1010
* Jarkko Nikula <[email protected]>
1111
*/
1212

13-
#include <linux/clk.h>
13+
#include <linux/array_size.h>
14+
#include <linux/bits.h>
1415
#include <linux/clkdev.h>
16+
#include <linux/clk.h>
1517
#include <linux/clk-provider.h>
1618
#include <linux/debugfs.h>
19+
#include <linux/device.h>
20+
#include <linux/err.h>
21+
#include <linux/gfp_types.h>
1722
#include <linux/idr.h>
1823
#include <linux/io.h>
1924
#include <linux/ioport.h>
20-
#include <linux/kernel.h>
21-
#include <linux/module.h>
2225
#include <linux/mfd/core.h>
26+
#include <linux/module.h>
2327
#include <linux/pm_qos.h>
2428
#include <linux/pm_runtime.h>
25-
#include <linux/property.h>
26-
#include <linux/seq_file.h>
29+
#include <linux/sprintf.h>
30+
#include <linux/types.h>
31+
2732
#include <linux/io-64-nonatomic-lo-hi.h>
2833

2934
#include <linux/dma/idma64.h>
3035

3136
#include "intel-lpss.h"
3237

38+
struct dentry;
39+
3340
#define LPSS_DEV_OFFSET 0x000
3441
#define LPSS_DEV_SIZE 0x200
3542
#define LPSS_PRIV_OFFSET 0x200

0 commit comments

Comments
 (0)