Re: can: ucan: Use usb_endpoint_type() rather than duplicating its implementation

From: Markus Elfring
Date: Tue Jun 24 2025 - 14:28:42 EST


> Looking at the helpers in linux/usb/ch9.h,

Please take another look at known source code mappings.

Passing code replacements by APIs (for SmPL)?
https://lore.kernel.org/cocci/481faa1d-7171-4657-8dc0-c37b153e6eaa@xxxxxx/
https://sympa.inria.fr/sympa/arc/cocci/2025-06/msg00044.html


> it seems that Coccinelle missed many simplifications.

Would such software transformations become better supported anyhow?

Regards,
Markus