summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2004-12-04 21:09:09 +0000
committerRussell King <rmk@flint.arm.linux.org.uk>2004-12-04 21:09:09 +0000
commitbb3ddc318e8fc1f0bca18c1d86403c01370fe9df (patch)
tree69527f7ab6c7fa3234af4e00d736e41d24d9bb47 /include
parentb56211a1a9cfaf3ec49b9ca146446b47d3d704eb (diff)
[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.
Diffstat (limited to 'include')
-rw-r--r--include/linux/serial_core.h6
1 files changed, 3 insertions, 3 deletions
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;