Thread (4 messages) flat view 4 messages, 2 authors, 2012-05-25
STALE5185d

[PATCH 1/2] can: Added constants containing length of CAN identifiers

From: Rostislav Lisovy <hidden>
Date: 2012-05-25 09:12:36
Also in: linux-can
Subsystem: the rest · Maintainer: Linus Torvalds

The necessary information might be determined out of the CAN_*_MASK,
however it is undesirable to misuse masks for such purpose.

Signed-off-by: Rostislav Lisovy <redacted>
---
 include/linux/can.h |    3 +++
 1 file changed, 3 insertions(+)
diff --git a/include/linux/can.h b/include/linux/can.h
index 9a19bcb..08d1610 100644
--- a/include/linux/can.h
+++ b/include/linux/can.h
@@ -38,6 +38,9 @@
  */
 typedef __u32 canid_t;
 
+#define CAN_SFF_ID_BITS		11
+#define CAN_EFF_ID_BITS		29
+
 /*
  * Controller Area Network Error Frame Mask structure
  *
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help