scsi: ufs: Refactor ADAPT configuration function
authorStanley Chu <stanley.chu@mediatek.com>
Mon, 16 Nov 2020 06:50:52 +0000 (14:50 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Nov 2020 06:03:18 +0000 (01:03 -0500)
commitfc85a74e28fe087dceb80eb69f37307ec97b6b47
tree1d9b767940528733935fc575b39906fbeb69a5a9
parent85d6d3c18953b9653d0934c087fe73ff02e43c79
scsi: ufs: Refactor ADAPT configuration function

Several vendors are using same code to configure ADAPT settings for
HS-G4. Simply refactor it as common function.

Link: https://lore.kernel.org/r/20201116065054.7658-8-stanley.chu@mediatek.com
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h