soundwire: generic_bandwidth_allocation use bus->params.max_dr_freq
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 27 Nov 2023 12:44:05 +0000 (20:44 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 28 Nov 2023 09:59:55 +0000 (15:29 +0530)
commit55d50ace6b88eb273a10963160cadbadccfcdd64
tree5be7ebb7f95307026fa13a85989a6caa9457cb72
parenta7ae05ef356162c2a7ff108a7ff154d7d0dcd6aa
soundwire: generic_bandwidth_allocation use bus->params.max_dr_freq

bus->params.max_dr_freq is calculated and set in sdw_bus_master_add().
We can use it directly instead of calculating it again.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20231127124405.2080431-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/generic_bandwidth_allocation.c