Skip to content

canxl extension: use plain union instead of typedef#614

Merged
marckleinebudde merged 1 commit intolinux-can:masterfrom
hartkopp:master
Dec 18, 2025
Merged

canxl extension: use plain union instead of typedef#614
marckleinebudde merged 1 commit intolinux-can:masterfrom
hartkopp:master

Conversation

@hartkopp
Copy link
Member

"In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef."

https://www.kernel.org/doc/html/v5.0/process/coding-style.html#typedefs

"In general, a pointer, or a struct that has elements that can reasonably
be directly accessed should never be a typedef."

https://www.kernel.org/doc/html/v5.0/process/coding-style.html#typedefs

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
@marckleinebudde
Copy link
Member

LGTM

@marckleinebudde marckleinebudde merged commit 1f038b3 into linux-can:master Dec 18, 2025
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants