From: Bart Van Assche <bvanassche@acm.org>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
James.Bottomley@HansenPartnership.com,
martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/5] scsi: ufs: renesas: Refactor init code for other UFS controller
Date: Mon, 8 Jul 2024 10:04:52 -0700 [thread overview]
Message-ID: <434cb981-b0fe-4dd2-bac1-e80de2e68099@acm.org> (raw)
In-Reply-To: <20240708120931.1703956-2-yoshihiro.shimoda.uh@renesas.com>
On 7/8/24 5:09 AM, Yoshihiro Shimoda wrote:
> +static void ufs_renesas_param_poll(struct ufs_hba *hba, u32 reg, u32 expected,
> + u32 mask)
> +{
> + struct ufs_renesas_init_param param = { 0 };
> +
> + param.mode = MODE_POLL;
> + param.reg = reg;
> + param.u.expected = expected;
> + param.mask = mask;
Please combine the above declaration and assignments into a single
statement:
struct ufs_renesas_init_param param = {
.mode = MODE_POLL,
.reg = reg,
.u.expected = expected,
.mask = mask,
};
Same comment for the other functions below this function.
Thanks,
Bart.
next prev parent reply other threads:[~2024-07-08 17:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-08 12:09 [PATCH 0/5] scsi: ufs: renesas: Refactor code for other UFS controller Yoshihiro Shimoda
2024-07-08 12:09 ` [PATCH 1/5] scsi: ufs: renesas: Refactor init " Yoshihiro Shimoda
2024-07-08 17:04 ` Bart Van Assche [this message]
2024-07-08 23:44 ` Yoshihiro Shimoda
2024-07-08 12:09 ` [PATCH 2/5] scsi: ufs: renesas: Remove a static local variable Yoshihiro Shimoda
2024-07-08 12:09 ` [PATCH 3/5] scsi: ufs: renesas: Use udelay() directly Yoshihiro Shimoda
2024-07-08 12:09 ` [PATCH 4/5] scsi: ufs: renesas: Refactoring specific PHY settings of 0x10a[df] Yoshihiro Shimoda
2024-07-08 12:09 ` [PATCH 5/5] scsi: ufs: renesas: Add reusable functions Yoshihiro Shimoda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434cb981-b0fe-4dd2-bac1-e80de2e68099@acm.org \
--to=bvanassche@acm.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=yoshihiro.shimoda.uh@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox