[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <035fad25-1b0d-c8ba-896f-eae2bd2144e3@acm.org>
Date: Wed, 1 Sep 2021 09:35:18 -0700
From: Bart Van Assche <bvanassche@....org>
To: Avri Altman <avri.altman@....com>,
"James E . J . Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Adrian Hunter <adrian.hunter@...el.com>,
Bean Huo <beanhuo@...ron.com>
Subject: Re: [PATCH 1/3] scsi: ufs: Probe for temperature notification support
On 9/1/21 5:37 AM, Avri Altman wrote:
> +static inline bool ufshcd_is_high_temp_notif_allowed(struct ufs_hba *hba)
> +{
> + return hba->dev_info.high_temp_notif;
> +}
> +
> +static inline bool ufshcd_is_low_temp_notif_allowed(struct ufs_hba *hba)
> +{
> + return hba->dev_info.low_temp_notif;
> +}
Please do not introduce single line inline functions.
> +static inline bool ufshcd_is_temp_notif_allowed(struct ufs_hba *hba)
> +{
> + return ufshcd_is_high_temp_notif_allowed(hba) ||
> + ufshcd_is_high_temp_notif_allowed(hba);
> +}
Since this function is not in any hot path (command processing),
shouldn't it be moved into ufshcd.c?
Thanks,
Bart.
Powered by blists - more mailing lists