scsi: ufs: Change ufshcd_comp_devman_upiu() to ufshcd_compose_devman_upiu()
authorBean Huo <beanhuo@micron.com>
Fri, 14 Aug 2020 09:50:33 +0000 (11:50 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 21 Aug 2020 01:41:52 +0000 (21:41 -0400)
ufshcd_comp_devman_upiu() was poorly named leading people to think it was a
completion function. Rename it to ufshcd_compose_devman_upiu().

Link: https://lore.kernel.org/r/20200814095034.20709-2-huobean@gmail.com
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Acked-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c

index efb40b1b95b40a8943e1157d596014e54f9247f9..c81983e4e05dd46737dee92a7b6e3d0487636006 100644 (file)
@@ -2401,12 +2401,13 @@ static inline void ufshcd_prepare_utp_nop_upiu(struct ufshcd_lrb *lrbp)
 }
 
 /**
- * ufshcd_comp_devman_upiu - UFS Protocol Information Unit(UPIU)
+ * ufshcd_compose_devman_upiu - UFS Protocol Information Unit(UPIU)
  *                          for Device Management Purposes
  * @hba: per adapter instance
  * @lrbp: pointer to local reference block
  */
-static int ufshcd_comp_devman_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp)
+static int ufshcd_compose_devman_upiu(struct ufs_hba *hba,
+                                     struct ufshcd_lrb *lrbp)
 {
        u8 upiu_flags;
        int ret = 0;
@@ -2613,7 +2614,7 @@ static int ufshcd_compose_dev_cmd(struct ufs_hba *hba,
        ufshcd_prepare_lrbp_crypto(NULL, lrbp);
        hba->dev_cmd.type = cmd_type;
 
-       return ufshcd_comp_devman_upiu(hba, lrbp);
+       return ufshcd_compose_devman_upiu(hba, lrbp);
 }
 
 static int