]> git.baikalelectronics.ru Git - kernel.git/commit
phy: cadence-torrent: use swap() to make code cleaner
authorYang Guang <yang.guang5@zte.com.cn>
Thu, 4 Nov 2021 06:52:33 +0000 (14:52 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 23 Nov 2021 05:54:30 +0000 (11:24 +0530)
commit6717e5313d55f2cbc9268adffcf943d41bc8e3ee
tree80fbb6a7385b3c97ab02bb317afdbc2790d3ab7c
parentccf6cccfc388f632eda87e59e69692e8db5c3da1
phy: cadence-torrent: use swap() to make code cleaner

Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid
opencoding it.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Link: https://lore.kernel.org/r/20211104065233.1833499-1-yang.guang5@zte.com.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/cadence/phy-cadence-torrent.c