X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=src%2Fcp210x.h;h=ab4eddb7581e79726adeba3579d8b3ee76bce8c0;hb=802c176956f4103a71ea091c967474ee78798492;hp=a2060e588baaf31ee7dd90076175dfec0a55b4cb;hpb=3c0ea1205a69103a17f39f9b0a96d99207fe0451;p=cp210x.git diff --git a/src/cp210x.h b/src/cp210x.h index a2060e5..ab4eddb 100644 --- a/src/cp210x.h +++ b/src/cp210x.h @@ -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 * @@ -120,6 +121,7 @@ #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 {