[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210309145543.GB14621@lst.de>
Date: Tue, 9 Mar 2021 15:55:43 +0100
From: Christoph Hellwig <hch@....de>
To: Caleb Connolly <caleb@...nolly.tech>
Cc: Alim Akhtar <alim.akhtar@...sung.com>,
Avri Altman <avri.altman@....com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
ejb@...ux.ibm.com, stanley.chu@...iatek.com, cang@...eaurora.org,
beanhuo@...ron.com, jaegeuk@...nel.org, asutoshd@...eaurora.org,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Christoph Hellwig <hch@....de>
Subject: Re: [RESEND PATCH v2 1/3] scsi: ufshcd: use a function to
calculate versions
On Tue, Mar 09, 2021 at 12:02:47PM +0000, Caleb Connolly wrote:
> +static inline u32 ufshci_version(u32 major, u32 minor) {
> + return (((major) << 8) + ((minor) << 4));
> +}
Kernel style puts the opening curly brace on a separate line. Also
for an inline function adding parentheses is not required (unlike for
macros).
Otherwise this looks good:
Reviewed-by: Christoph Hellwig <hch@....de>
Powered by blists - more mailing lists