@@ -121,9 +121,9 @@ int sdw_master_read_prop(struct sdw_bus *bus)
}
EXPORT_SYMBOL(sdw_master_read_prop);
-static int sdw_slave_read_dp0(struct sdw_slave *slave,
- struct fwnode_handle *port,
- struct sdw_dp0_prop *dp0)
+int sdw_slave_read_dp0(struct sdw_slave *slave,
+ struct fwnode_handle *port,
+ struct sdw_dp0_prop *dp0)
{
int nval;
@@ -160,6 +160,7 @@ static int sdw_slave_read_dp0(struct sdw_slave *slave,
return 0;
}
+EXPORT_SYMBOL(sdw_slave_read_dp0);
int sdw_slave_read_dpn(struct sdw_slave *slave,
struct sdw_dpn_prop *dpn, int count, int ports,
@@ -348,6 +348,9 @@ int sdw_slave_read_prop(struct sdw_slave *slave);
int sdw_slave_read_dpn(struct sdw_slave *slave,
struct sdw_dpn_prop *dpn, int count, int ports,
char *type);
+int sdw_slave_read_dp0(struct sdw_slave *slave,
+ struct fwnode_handle *port,
+ struct sdw_dp0_prop *dp0);
/*
* SDW Slave Structures and APIs
sdw_slave_read_dp0 was so far a static function, which prevented codec drivers from using it. Expose as non-static function and add symbol Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> --- drivers/soundwire/mipi_disco.c | 7 ++++--- include/linux/soundwire/sdw.h | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-)