Re: [PATCH] can: esd_usb: add endpoint type validation

From: Ziyi Guo

Date: Fri Feb 13 2026 - 11:06:57 EST


On Fri, Feb 13, 2026 at 11:01 AM Vincent Mailhol <mailhol@xxxxxxxxxx> wrote:
> Instead of using magic numbers with comments declare a macro:
>
> #define ESD_USB_EP_IN 1
> #define ESD_USB_EP_OUT 2
>
> and use it throughout the driver.
>
>
> This also enforce that we are using existing endpoints while being
> more concise.
>

Hi Vincent,

Thank you so much for your time and review, I'll revise the code and
send a v2 version patch!