Re: [PATCH] can: esd_usb: Improve code readability by means of replacing struct esd_usb_msg with a union

From: Marc Kleine-Budde
Date: Fri Mar 24 2023 - 13:50:11 EST


On 22.02.2023 17:37:54, Frank Jungclaus wrote:
> As suggested by Vincent Mailhol, declare struct esd_usb_msg as a union
> instead of a struct. Then replace all msg->msg.something constructs,
> that make use of esd_usb_msg, with simpler and prettier looking
> msg->something variants.
>
> Link: https://lore.kernel.org/all/CAMZ6RqKRzJwmMShVT9QKwiQ5LJaQupYqkPkKjhRBsP=12QYpfA@xxxxxxxxxxxxxx/
> Suggested-by: Vincent MAILHOL <mailhol.vincent@xxxxxxxxxx>
> Signed-off-by: Frank Jungclaus <frank.jungclaus@xxxxxx>

Applied to linux-can-next.

regards,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |

Attachment: signature.asc
Description: PGP signature