From bb3ddc318e8fc1f0bca18c1d86403c01370fe9df Mon Sep 17 00:00:00 2001 From: Russell King Date: Sat, 4 Dec 2004 21:09:09 +0000 Subject: [SERIAL] Ensure correct units for close_delay and closing_wait. Use milliseconds internally for these delays, and convert them to centiseconds at the interface boundary to the ioctl configuration controls. --- include/linux/serial_core.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linux/serial_core.h') diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 1dd43bc63800..9666c572f65b 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -244,11 +244,11 @@ struct uart_port { * within. */ struct uart_state { - unsigned int close_delay; - unsigned int closing_wait; + unsigned int close_delay; /* msec */ + unsigned int closing_wait; /* msec */ #define USF_CLOSING_WAIT_INF (0) -#define USF_CLOSING_WAIT_NONE (65535) +#define USF_CLOSING_WAIT_NONE (~0U) int count; int pm_state; -- cgit v1.2.3