Message ID | 20240708120931.1703956-1-yoshihiro.shimoda.uh@renesas.com |
---|---|
Headers | show |
Series | scsi: ufs: renesas: Refactor code for other UFS controller | expand |
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.