]> oss.titaniummirror.com Git - cp210x.git/commitdiff
No kernel compile-time visibility to userspace only stuff in cp210x.h
authorR. Steve McKown <rsmckown@gmail.com>
Mon, 17 May 2010 21:07:03 +0000 (15:07 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 20 May 2010 01:21:17 +0000 (19:21 -0600)
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 {