[PATCH v3 1/2] can: netlink: reorder IFLA_CAN_TDC* entries in can_policy structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The IFLA_CAN_TDC* entries within the can_policy structure appear in a
different order than their declaration in
include/uapi/linux/can/netlink.h

Reorder them to follow the same order.

Signed-off-by: Vincent Mailhol <mailhol.vincent@xxxxxxxxxx>
---
Hi Marc,

Please squash this patch into:
5aed4df12f1b ("can: add netlink interface for CAN-FD Transmitter Delay Compensation (TDC)")
---
 drivers/net/can/dev/netlink.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/can/dev/netlink.c b/drivers/net/can/dev/netlink.c
index a3b71465849c..58e458dc8be2 100644
--- a/drivers/net/can/dev/netlink.c
+++ b/drivers/net/can/dev/netlink.c
@@ -20,10 +20,10 @@ static const struct nla_policy can_policy[IFLA_CAN_MAX + 1] = {
 	[IFLA_CAN_DATA_BITTIMING_CONST]	= { .len = sizeof(struct can_bittiming_const) },
 	[IFLA_CAN_TERMINATION] = { .type = NLA_U16 },
 	[IFLA_CAN_TDCV] = { .type = NLA_U32 },
-	[IFLA_CAN_TDCV_MAX_CONST] = { .type = NLA_U32 },
 	[IFLA_CAN_TDCO] = { .type = NLA_U32 },
-	[IFLA_CAN_TDCO_MAX_CONST] = { .type = NLA_U32 },
 	[IFLA_CAN_TDCF] = { .type = NLA_U32 },
+	[IFLA_CAN_TDCV_MAX_CONST] = { .type = NLA_U32 },
+	[IFLA_CAN_TDCO_MAX_CONST] = { .type = NLA_U32 },
 	[IFLA_CAN_TDCF_MAX_CONST] = { .type = NLA_U32 },
 };
 
-- 
2.26.2




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux