]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soundwire: bus: add of_sdw_find_device_by_node helper
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Tue, 9 Sep 2025 12:19:44 +0000 (13:19 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 18 Sep 2025 21:24:26 +0000 (22:24 +0100)
commit76cffc3eb1bdee0a7e8cca090adfd46a740f1cb0
tree6cfdf7afe5ab3e8dd6e65d80f8980f1060733e41
parentc4bb62eb594418a6bd05ff03bb9072ee1fef29c2
soundwire: bus: add of_sdw_find_device_by_node helper

There has been more than 3 instances of this helper in multiple codec
drivers, it does not make sense to keep duplicating this part of code.

Lets add a helper of_sdw_find_device_by_node for codec drivers to use it.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://patch.msgid.link/20250909121954.225833-4-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/slave.c
include/linux/soundwire/sdw.h