]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: bus: Simplify sdw_assign_device_num()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 29 Apr 2025 10:18:07 +0000 (11:18 +0100)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 May 2025 11:42:50 +0000 (12:42 +0100)
commit5b1a2927c4f63878d2c108cebad09358e69caa20
tree71812eb1eb25c9edb4158ccd8e1e8584780b2e75
parent0af2f6be1b4281385b618cb86ad946eded089ac8
soundwire: bus: Simplify sdw_assign_device_num()

Simplify the code in sdw_assign_device_num(). Remove the new_device
flag which can be simply handled inline and do a bit less shuffling of
dev_num in and out of various variables. This patch should cause no
functional changes.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://lore.kernel.org/r/20250429101808.348462-2-ckeepax@opensource.cirrus.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c