Skip to content

Commit e311b04

Browse files
charleskeepaxvinodkoul
authored andcommitted
soundwire: Update the includes on the sdw.h header
There are quite a few things used in the sdw.h header that it relies on the consumer to include. If something is used directly in the header it should be included by the header. Update the includes to cover the missing items, or add forward declarations for things that are only used as pointers. Whilst making the change also alphabetise the list of includes. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20241112125646.590240-1-ckeepax@opensource.cirrus.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 830f1aa commit e311b04

File tree

1 file changed

+9
-2
lines changed
  • include/linux/soundwire

1 file changed

+9
-2
lines changed

include/linux/soundwire/sdw.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@
44
#ifndef __SOUNDWIRE_H
55
#define __SOUNDWIRE_H
66

7+
#include <linux/bitfield.h>
78
#include <linux/bug.h>
8-
#include <linux/lockdep_types.h>
9+
#include <linux/completion.h>
10+
#include <linux/device.h>
911
#include <linux/irq.h>
1012
#include <linux/irqdomain.h>
13+
#include <linux/lockdep_types.h>
1114
#include <linux/mod_devicetable.h>
12-
#include <linux/bitfield.h>
15+
#include <linux/mutex.h>
16+
#include <linux/types.h>
17+
18+
struct dentry;
19+
struct fwnode_handle;
1320

1421
struct sdw_bus;
1522
struct sdw_slave;

0 commit comments

Comments
 (0)