summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufshcd-pltfrm.h
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2020-11-16 14:50:47 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-11-17 01:03:18 -0500
commit65858014ee20c842eaff65514e75d2c640c70007 (patch)
tree0e7fc38ae91a13e62a155bfbcf0df2ca0f1ac17d /drivers/scsi/ufs/ufshcd-pltfrm.h
parent54770cbebe2caa89423a13ff32fa0d497c392214 (diff)
downloadlinux-stable-65858014ee20c842eaff65514e75d2c640c70007.tar.gz
linux-stable-65858014ee20c842eaff65514e75d2c640c70007.tar.bz2
linux-stable-65858014ee20c842eaff65514e75d2c640c70007.zip
scsi: ufs: Introduce device parameter initialization function
Nowadays many vendors initialize their device parameters in their own vendor drivers. The initialization code is almost the same as well as the pre-defined definitions. Introduce a common device parameter initialization function which assign the most common initial values. With this function, we could remove those duplicated codes in vendor drivers. Link: https://lore.kernel.org/r/20201116065054.7658-3-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>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd-pltfrm.h')
-rw-r--r--drivers/scsi/ufs/ufshcd-pltfrm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pltfrm.h b/drivers/scsi/ufs/ufshcd-pltfrm.h
index b79cdf9129a0..772a8e848098 100644
--- a/drivers/scsi/ufs/ufshcd-pltfrm.h
+++ b/drivers/scsi/ufs/ufshcd-pltfrm.h
@@ -28,6 +28,7 @@ struct ufs_dev_params {
int ufshcd_get_pwr_dev_param(struct ufs_dev_params *dev_param,
struct ufs_pa_layer_attr *dev_max,
struct ufs_pa_layer_attr *agreed_pwr);
+void ufshcd_init_pwr_dev_param(struct ufs_dev_params *dev_param);
int ufshcd_pltfrm_init(struct platform_device *pdev,
const struct ufs_hba_variant_ops *vops);
void ufshcd_pltfrm_shutdown(struct platform_device *pdev);