Commit 5b1a292
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>1 parent 0af2f6b commit 5b1a292
1 file changed
Lines changed: 12 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
750 | 750 | | |
751 | 751 | | |
752 | 752 | | |
753 | | - | |
754 | | - | |
| 753 | + | |
| 754 | + | |
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
759 | 761 | | |
760 | 762 | | |
761 | 763 | | |
762 | 764 | | |
763 | | - | |
764 | | - | |
| 765 | + | |
765 | 766 | | |
766 | 767 | | |
767 | | - | |
| 768 | + | |
768 | 769 | | |
769 | | - | |
770 | 770 | | |
771 | | - | |
| 771 | + | |
| 772 | + | |
772 | 773 | | |
773 | 774 | | |
774 | 775 | | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | 776 | | |
781 | | - | |
782 | 777 | | |
783 | 778 | | |
784 | | - | |
| 779 | + | |
785 | 780 | | |
786 | | - | |
787 | | - | |
| 781 | + | |
| 782 | + | |
788 | 783 | | |
789 | 784 | | |
790 | 785 | | |
791 | 786 | | |
792 | 787 | | |
793 | 788 | | |
794 | 789 | | |
795 | | - | |
| 790 | + | |
796 | 791 | | |
797 | 792 | | |
798 | 793 | | |
| |||
0 commit comments