Skip to contentSkip to conversation

ufs: core: Unify function names for clk-scaling

PATCH New Stanley Chu 1 participant 1 message Aug 11, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ufs: core: Unify function names for clk-scaling

Currently the naming style of clk-scaling related function is not unified. Simply unify their names for better readability.

This patch does not change the functionality.

---
 drivers/ufs/core/ufs-sysfs.c |  3 +-
 drivers/ufs/core/ufshcd.c    | 56 ++++++++++++++++++------------------
 include/ufs/ufshcd.h         |  2 +-
 3 files changed, 31 insertions(+), 30 deletions(-)
drivers/ufs/core/ufs-sysfs.c +2 -1
index 0a088b47d557..a64d069db64c 100644
@@ -225,7 +225,8 @@ static ssize_t wb_on_store(struct device *dev, struct device_attribute *attr,
 	unsigned int wb_enable;
 	ssize_t res;
 
-	if (!ufshcd_is_wb_allowed(hba) || ufshcd_is_clkscaling_supported(hba)) {
+	if (!ufshcd_is_wb_allowed(hba) ||
+	    ufshcd_is_clk_scaling_supported(hba)) {
 		/*
 		 * If the platform supports UFSHCD_CAP_CLK_SCALING, turn WB
 		 * on/off will be done while clock scaling up/down.
drivers/ufs/core/ufshcd.c +28 -28

190 lines not on this page · raw message

include/ufs/ufshcd.h +1 -1
index 7fe1a926cd99..5fd99a9cacb7 100644
@@ -976,7 +976,7 @@ static inline bool ufshcd_can_hibern8_during_gating(struct ufs_hba *hba)
 {
 	return hba->caps & UFSHCD_CAP_HIBERN8_WITH_CLK_GATING;
 }
-static inline int ufshcd_is_clkscaling_supported(struct ufs_hba *hba)
+static inline int ufshcd_is_clk_scaling_supported(struct ufs_hba *hba)
 {
 	return hba->caps & UFSHCD_CAP_CLK_SCALING;
 }
Signature · 1 line
2.18.0