summaryrefslogtreecommitdiff
path: root/include/ufs
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2023-03-30 04:29:18 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-04-03 04:14:45 +0300
commit543a827b1db3ef0a123dc7a48e8feb6585eae0a6 (patch)
treef846a278cbbf8d8da52e48426090ed5ba6665f29 /include/ufs
parentf467b865cf5b25aac3feee3fb5e25b90f5df35c4 (diff)
downloadlinux-543a827b1db3ef0a123dc7a48e8feb6585eae0a6.tar.xz
scsi: core: Clean up struct ufs_saved_pwr_info
The "is_valid" field of the struct ufs_saved_pwr_info is no longer used, and this struct can be replaced by struct ufs_pa_layer_attr without any changes to the functionality. Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Link: https://lore.kernel.org/r/20230330012918.13748-1-stanley.chu@mediatek.com Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/ufs')
-rw-r--r--include/ufs/ufshcd.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
index 25aab8ec4f86..8b1046c21960 100644
--- a/include/ufs/ufshcd.h
+++ b/include/ufs/ufshcd.h
@@ -394,11 +394,6 @@ struct ufs_clk_gating {
struct workqueue_struct *clk_gating_workq;
};
-struct ufs_saved_pwr_info {
- struct ufs_pa_layer_attr info;
- bool is_valid;
-};
-
/**
* struct ufs_clk_scaling - UFS clock scaling related data
* @active_reqs: number of requests that are pending. If this is zero when
@@ -428,7 +423,7 @@ struct ufs_clk_scaling {
ktime_t window_start_t;
ktime_t busy_start_t;
struct device_attribute enable_attr;
- struct ufs_saved_pwr_info saved_pwr_info;
+ struct ufs_pa_layer_attr saved_pwr_info;
struct workqueue_struct *workq;
struct work_struct suspend_work;
struct work_struct resume_work;