From 802c176956f4103a71ea091c967474ee78798492 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Mon, 17 May 2010 15:07:03 -0600 Subject: [PATCH] No kernel compile-time visibility to userspace only stuff in cp210x.h --- src/cp210x.h | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.39.2