ufs: core: Unify function names for clk-scaling
Subsystems (2)
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.
Signed-off-by Stanley Chu <[email protected]>
--- 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
@@ -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
@@ -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