diff options
Diffstat (limited to 'include/asm-blackfin/termios.h')
-rw-r--r-- | include/asm-blackfin/termios.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-blackfin/termios.h b/include/asm-blackfin/termios.h index 5c41478a51c6..e31fe859650b 100644 --- a/include/asm-blackfin/termios.h +++ b/include/asm-blackfin/termios.h | |||
@@ -98,8 +98,14 @@ struct termio { | |||
98 | copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ | 98 | copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ |
99 | }) | 99 | }) |
100 | 100 | ||
101 | #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) | 101 | #define user_termios_to_kernel_termios(k, u) \ |
102 | #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) | 102 | copy_from_user(k, u, sizeof(struct termios2)) |
103 | #define kernel_termios_to_user_termios(u, k) \ | ||
104 | copy_to_user(u, k, sizeof(struct termios2)) | ||
105 | #define user_termios_to_kernel_termios_1(k, u) \ | ||
106 | copy_from_user(k, u, sizeof(struct termios)) | ||
107 | #define kernel_termios_to_user_termios_1(u, k) \ | ||
108 | copy_to_user(u, k, sizeof(struct termios)) | ||
103 | 109 | ||
104 | #endif /* __KERNEL__ */ | 110 | #endif /* __KERNEL__ */ |
105 | 111 | ||