Skip to content

Commit

Permalink
soundwire: Update the includes on the sdw.h header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
charleskeepax authored and vinodkoul committed Nov 14, 2024
1 parent 830f1aa commit e311b04
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions include/linux/soundwire/sdw.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
#ifndef __SOUNDWIRE_H
#define __SOUNDWIRE_H

#include <linux/bitfield.h>
#include <linux/bug.h>
#include <linux/lockdep_types.h>
#include <linux/completion.h>
#include <linux/device.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/lockdep_types.h>
#include <linux/mod_devicetable.h>
#include <linux/bitfield.h>
#include <linux/mutex.h>
#include <linux/types.h>

struct dentry;
struct fwnode_handle;

struct sdw_bus;
struct sdw_slave;
Expand Down

0 comments on commit e311b04

Please sign in to comment.