Skip to content

Commit deb0152

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: SDCA: Add missing header includes
Several of the SDCA files don't include all the headers they use locally. These are included by the point of use through other headers, so it is not currently causing any issues. However, files should directly include things they directly use, so add the missing header includes. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20241220173516.907406-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent ee37bc7 commit deb0152

4 files changed

Lines changed: 11 additions & 0 deletions

File tree

include/sound/sdca.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#ifndef __SDCA_H__
1010
#define __SDCA_H__
1111

12+
#include <linux/types.h>
13+
#include <linux/kconfig.h>
14+
1215
struct sdw_slave;
1316

1417
#define SDCA_MAX_FUNCTION_COUNT 8

include/sound/sdca_function.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef __SDCA_FUNCTION_H__
1010
#define __SDCA_FUNCTION_H__
1111

12+
#include <linux/bits.h>
13+
1214
/*
1315
* SDCA Function Types from SDCA specification v1.0a Section 5.1.2
1416
* all Function types not described are reserved

sound/soc/sdca/sdca_device.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
*/
88

99
#include <linux/acpi.h>
10+
#include <linux/module.h>
11+
#include <linux/property.h>
1012
#include <linux/soundwire/sdw.h>
1113
#include <sound/sdca.h>
1214
#include <sound/sdca_function.h>

sound/soc/sdca/sdca_functions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
*/
88

99
#include <linux/acpi.h>
10+
#include <linux/device.h>
11+
#include <linux/module.h>
12+
#include <linux/property.h>
1013
#include <linux/soundwire/sdw.h>
14+
#include <linux/types.h>
1115
#include <sound/sdca.h>
1216
#include <sound/sdca_function.h>
1317

0 commit comments

Comments
 (0)