scsi: ufs: Fix a typo in ufs-sysfs.c
A message that is not in the archive (sent off-list or not yet received): CGME20210427073842epcms2p1efa82e558171ad06c9398ea7c364e7dc@epcms2p1
PATCH 1/1 scsi: ufs: Fix a typo in ufs-sysfs.c
Change 'ufschd' to 'ufshcd'.
Fix the following typo:
ufschd_uic_link_state_to_string() -> ufshcd_uic_link_state_to_string() ufschd_ufs_dev_pwr_mode_to_string() -> ufshcd_ufs_dev_pwr_mode_to_string()
Signed-off-by Keoseong Park <[email protected]>
--- drivers/scsi/ufs/ufs-sysfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/scsi/ufs/ufs-sysfs.c +6 -6
@@ -9,7 +9,7 @@#include "ufs.h" #include "ufs-sysfs.h" -static const char *ufschd_uic_link_state_to_string ( +static const char *ufshcd_uic_link_state_to_string (enum uic_link_state state) {switch (state) {
@@ -21,7 +21,7 @@ static const char *ufschd_uic_link_state_to_string( } } -static const char *ufschd_ufs_dev_pwr_mode_to_string ( +static const char *ufshcd_ufs_dev_pwr_mode_to_string (enum ufs_dev_pwr_mode state) {switch (state) {
@@ -81,7 +81,7 @@ static ssize_t rpm_target_dev_state_show(struct device *dev, {struct ufs_hba *hba =dev_get_drvdata (dev); -return sysfs_emit (buf,"%s\n" ,ufschd_ufs_dev_pwr_mode_to_string ( +return sysfs_emit (buf,"%s\n" ,ufshcd_ufs_dev_pwr_mode_to_string ( ufs_pm_lvl_states[hba->rpm_lvl].dev_state)); }
@@ -90,7 +90,7 @@ static ssize_t rpm_target_link_state_show(struct device *dev, {struct ufs_hba *hba =dev_get_drvdata (dev); -return sysfs_emit (buf,"%s\n" ,ufschd_uic_link_state_to_string ( +return sysfs_emit (buf,"%s\n" ,ufshcd_uic_link_state_to_string ( ufs_pm_lvl_states[hba->rpm_lvl].link_state)); }
@@ -113,7 +113,7 @@ static ssize_t spm_target_dev_state_show(struct device *dev, {struct ufs_hba *hba =dev_get_drvdata (dev); -return sysfs_emit (buf,"%s\n" ,ufschd_ufs_dev_pwr_mode_to_string ( +return sysfs_emit (buf,"%s\n" ,ufshcd_ufs_dev_pwr_mode_to_string ( ufs_pm_lvl_states[hba->spm_lvl].dev_state)); }
@@ -122,7 +122,7 @@ static ssize_t spm_target_link_state_show(struct device *dev, {struct ufs_hba *hba =dev_get_drvdata (dev); -return sysfs_emit (buf,"%s\n" ,ufschd_uic_link_state_to_string ( +return sysfs_emit (buf,"%s\n" ,ufshcd_uic_link_state_to_string ( ufs_pm_lvl_states[hba->spm_lvl].link_state)); }
Signature · 1 line
2.17.1
Martin K. Petersen
AppliedQuoted 6 lines · Keoseong Park
Change 'ufschd' to 'ufshcd'.
Fix the following typo:
ufschd_uic_link_state_to_string()->ufshcd_uic_link_state_to_string()ufschd_ufs_dev_pwr_mode_to_string()->ufshcd_ufs_dev_pwr_mode_to_string()
Applied to 5.13/scsi-fixes, thanks!
[1/1] scsi: ufs: Fix a typo in ufs-sysfs.c
https://git.kernel.org/mkp/scsi/c/2f1137140fbc
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering