]> git.baikalelectronics.ru Git - kernel.git/commit
can: dev: fix type of get_can_dlc() and get_canfd_dlc() macros
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Fri, 2 Oct 2020 15:41:46 +0000 (00:41 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 6 Oct 2020 20:44:27 +0000 (22:44 +0200)
commitee0c13c225a4fd675e95cd1f22034daa8b46b1f4
treed5cc92915a1b645a7af85f7c1dcd8b5e37a3e379
parentcc6d3482bf102e4a3b69e8bcd48cec53febe4f6e
can: dev: fix type of get_can_dlc() and get_canfd_dlc() macros

The macros get_can_dlc() and get_canfd_dlc() are not visible in
userland. As such, type u8 should be preferred over type __u8.

Reference: https://lkml.org/lkml/2020/10/1/708
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/r/20201002154219.4887-3-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/linux/can/dev.h