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)
commita463462998777af31995e309617918552983b890
tree80fbb6a7385b3c97ab02bb317afdbc2790d3ab7c
parentb1f9f4541e99a43e3d52bc65408d0b96a340c1df
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