scsi: ufs: Introduce ufshcd_get_pwr_dev_param
authorStanley Chu <stanley.chu@mediatek.com>
Sat, 16 Mar 2019 05:04:41 +0000 (13:04 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Mar 2019 20:56:20 +0000 (16:56 -0400)
commit58b60a9cb2521edfa2e1eb2abde56cab83fdebd3
tree36deff38a4111201a3473c559f278afade6e233a
parent79d3fa9ea722850363da662ca70684dc5c0e1299
scsi: ufs: Introduce ufshcd_get_pwr_dev_param

ufshcd_get_pwr_dev_param defines an interface for power mode management
currently used by both ufs-qcom and ufs-hisi. Move the interface to ufs
core so every driver can take advantage of it.

Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Acked-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd-pltfrm.c
drivers/scsi/ufs/ufshcd-pltfrm.h