soundwire: stream: constify sdw_port_config when adding devices
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 20 Nov 2023 17:47:20 +0000 (18:47 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 23 Nov 2023 07:16:20 +0000 (12:46 +0530)
commit21f4c443731fdb064c0dd31a743aafd0b075156c
tree87527795b47eb646e67edd29d33e16913de69608
parent5bdc61ef45007908df9d8587111c7a5a552bdd46
soundwire: stream: constify sdw_port_config when adding devices

sdw_stream_add_master() and sdw_stream_add_slave() do not modify
contents of passed sdw_port_config, so it can be made const for code
safety and as documentation of expected usage.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231120174720.239610-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c
include/linux/soundwire/sdw.h