]> oss.titaniummirror.com Git - cp210x.git/blobdiff - src/cp210x.h
No kernel compile-time visibility to userspace only stuff in cp210x.h
[cp210x.git] / src / cp210x.h
index a2060e588baaf31ee7dd90076175dfec0a55b4cb..ab4eddb7581e79726adeba3579d8b3ee76bce8c0 100644 (file)
@@ -50,6 +50,7 @@
 #define        CP210x_MAX_PRODUCT_STRLEN       126
 #define        CP210x_MAX_SERIAL_STRLEN        63
 
+#if !defined(__KERNEL__)
 /* Mode and latch bit to pin assignments. See AN223 from SiLabs:
  * https://www.silabs.com/Support Documents/TechnicalDocs/an223.pdf
  *
 #define CP210x_ENH_nRS485_TX           0x04
 #define CP210x_ENH_nRXLED              0x02
 #define CP210x_ENH_nTXLED              0x01
+#endif /* __KERNEL__ */
 
 /* Used to pass variable sized buffers between user and kernel space (ioctls) */
 struct cp210x_buffer {