scsi: ufs: Remove two WB related fields from struct ufs_dev_info
authorBean Huo <beanhuo@micron.com>
Tue, 19 Jan 2021 16:38:45 +0000 (17:38 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Jan 2021 03:12:30 +0000 (22:12 -0500)
commite8d03813942072cff7bf596e8350f9b7fcde0e98
tree5cfe59fc325c1f5ff77a06022fbaf40714c6f9d0
parentae1ce1fc61d4eae1cf00419a1be1a327099ba46c
scsi: ufs: Remove two WB related fields from struct ufs_dev_info

d_wb_alloc_units and d_ext_ufs_feature_sup are only used during WB probe.
They are used to confirm the condition that "if bWriteBoosterBufferType
is set to 01h but dNumSharedWriteBoosterBufferAllocUnits is set to zero,
the WriteBooster feature is disabled", and if UFS device supports WB.

No need to keep them after probing is complete.

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