]> Git Repo - linux.git/commitdiff
scsi: ufs: Use enum dev_cmd_type where appropriate
authorBart Van Assche <[email protected]>
Tue, 29 Oct 2019 23:07:09 +0000 (16:07 -0700)
committerMartin K. Petersen <[email protected]>
Fri, 1 Nov 2019 02:16:05 +0000 (22:16 -0400)
Declare all variables that hold dev_cmd_type values as an enum instead of
as an int.

Cc: Yaniv Gardi <[email protected]>
Cc: Subhash Jadavani <[email protected]>
Cc: Stanley Chu <[email protected]>
Cc: Avri Altman <[email protected]>
Cc: Tomas Winkler <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Avri Altman <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/ufs/ufshcd.c

index 12f88a86e65fc9dc29c50c6549ee6617ef689c74..9cbe3b45cf1c4ee0274f4001308047f980915dac 100644 (file)
@@ -5784,7 +5784,7 @@ static int ufshcd_issue_devman_upiu_cmd(struct ufs_hba *hba,
                                        struct utp_upiu_req *req_upiu,
                                        struct utp_upiu_req *rsp_upiu,
                                        u8 *desc_buff, int *buff_len,
-                                       int cmd_type,
+                                       enum dev_cmd_type cmd_type,
                                        enum query_opcode desc_op)
 {
        struct ufshcd_lrb *lrbp;
@@ -5899,7 +5899,7 @@ int ufshcd_exec_raw_upiu_cmd(struct ufs_hba *hba,
                             enum query_opcode desc_op)
 {
        int err;
-       int cmd_type = DEV_CMD_TYPE_QUERY;
+       enum dev_cmd_type cmd_type = DEV_CMD_TYPE_QUERY;
        struct utp_task_req_desc treq = { { 0 }, };
        int ocs_value;
        u8 tm_f = be32_to_cpu(req_upiu->header.dword_1) >> 16 & MASK_TM_FUNC;
This page took 0.071348 seconds and 4 git commands to generate.