#include <linux/acpi.h>
#include <linux/of.h>
#include <linux/soundwire/sdw.h>
#include <linux/soundwire/sdw_type.h>
#include "bus.h"
#include "sysfs_local.h"
static void sdw_slave_release(struct device *dev)
{ … }
const struct device_type sdw_slave_type = …;
int sdw_slave_add(struct sdw_bus *bus,
struct sdw_slave_id *id, struct fwnode_handle *fwnode)
{ … }
EXPORT_SYMBOL(…);
#if IS_ENABLED(CONFIG_ACPI)
static bool find_slave(struct sdw_bus *bus,
struct acpi_device *adev,
struct sdw_slave_id *id)
{ … }
struct sdw_acpi_child_walk_data { … };
static int sdw_acpi_check_duplicate(struct acpi_device *adev, void *data)
{ … }
static int sdw_acpi_find_one(struct acpi_device *adev, void *data)
{ … }
int sdw_acpi_find_slaves(struct sdw_bus *bus)
{ … }
#endif
int sdw_of_find_slaves(struct sdw_bus *bus)
{ … }