scsi: ufs: Clean up and refactor clk-scaling feature
authorStanley Chu <stanley.chu@mediatek.com>
Wed, 20 Jan 2021 15:01:42 +0000 (23:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Jan 2021 03:29:38 +0000 (22:29 -0500)
commit348e1bc5f4b733a9deb1dae3242ee94f23fe6ab0
treed49ffb1c74677f106a1ffadc48ad63389460ac85
parentb058fa868234fe835af4e3887b4f0d018a9220ed
scsi: ufs: Clean up and refactor clk-scaling feature

Manipulate clock scaling related stuff only if the host capability supports
clock scaling feature to avoid redundant code execution.

Link: https://lore.kernel.org/r/20210120150142.5049-4-stanley.chu@mediatek.com
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c