soundwire: export sdw_compute_slave_ports() function
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Tue, 21 Mar 2023 05:08:54 +0000 (10:38 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Apr 2023 10:00:35 +0000 (15:30 +0530)
commitf346fdf977209b1f2a6fd701a853372d398cce91
tree11b42795d7c0f3f4b49156656770b68399ec5c91
parentacdae4632e40f05e0f0731c5a383e461324aea65
soundwire: export sdw_compute_slave_ports() function

Export sdw_compute_slave_ports() function to use it in another
soundwire manager module.
Move sdw_transport_data structure to bus header file to export
sdw_compute_slave_ports() function.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/lkml/20230201165944.3169125-1-Vijendar.Mukunda@amd.com
Link: https://lore.kernel.org/r/20230321050901.115439-2-Vijendar.Mukunda@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.h
drivers/soundwire/generic_bandwidth_allocation.c