Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d970abd1 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: fix parameter type from bool to enum ufs_notify_change_status



This change fixes the signature of the routine
ufshcd_vops_clk_scale_notify() and the callback clk_scale_notify
to receive enum ufs_notify_change_status instead of bool as their 3rd
parameter.

Change-Id: I8463f4f5f0a77bcbc3b0bcdfd05d1a02e334dc8e
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 454e5e55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1952,7 +1952,7 @@ static int ufs_qcom_clk_scale_down_post_change(struct ufs_hba *hba)
}

static int ufs_qcom_clk_scale_notify(struct ufs_hba *hba,
				      bool scale_up, bool status)
		bool scale_up, enum ufs_notify_change_status status)
{
	struct ufs_qcom_host *host = ufshcd_get_variant(hba);
	struct ufs_pa_layer_attr *dev_req_params = &host->dev_req_params;
+3 −2
Original line number Diff line number Diff line
@@ -312,7 +312,8 @@ struct ufs_hba_variant_ops {
	int	(*init)(struct ufs_hba *);
	void	(*exit)(struct ufs_hba *);
	u32	(*get_ufs_hci_version)(struct ufs_hba *);
	int	(*clk_scale_notify)(struct ufs_hba *, bool, bool);
	int	(*clk_scale_notify)(struct ufs_hba *, bool,
				    enum ufs_notify_change_status);
	int	(*setup_clocks)(struct ufs_hba *, bool, bool);
	int	(*setup_regulators)(struct ufs_hba *, bool);
	int	(*hce_enable_notify)(struct ufs_hba *,
@@ -1105,7 +1106,7 @@ static inline u32 ufshcd_vops_get_ufs_hci_version(struct ufs_hba *hba)
}

static inline int ufshcd_vops_clk_scale_notify(struct ufs_hba *hba,
						bool up, bool status)
			bool up, enum ufs_notify_change_status status)
{
	if (hba->var && hba->var->vops && hba->var->vops->clk_scale_notify)
		return hba->var->vops->clk_scale_notify(hba, up, status);