diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-03-11 07:52:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-11 09:01:17 -0400 |
commit | 079119a2c7c83506ad753e7b95e9ed253e9963f9 (patch) | |
tree | 77a6d542a8e617593071f58a226c01d2e1762c7b /drivers/tty/serial/8250 | |
parent | 12fe59f975b9b36a17eced4c4d33911ee9bc9f7a (diff) |
serial, x86: use UPF_* constants for flags
This patch fixes the following sparse warnings:
drivers/tty/serial/8250/8250_core.c:3231:32: warning: incorrect type in assignment (different base types)
drivers/tty/serial/8250/8250_core.c:3231:32: expected restricted upf_t [usertype] flags
drivers/tty/serial/8250/8250_core.c:3231:32: got unsigned int const [unsigned] flags
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r-- | drivers/tty/serial/8250/8250.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250.h b/drivers/tty/serial/8250/8250.h index b00836851061..656ecc60b5b2 100644 --- a/drivers/tty/serial/8250/8250.h +++ b/drivers/tty/serial/8250/8250.h | |||
@@ -53,7 +53,7 @@ struct old_serial_port { | |||
53 | unsigned int baud_base; | 53 | unsigned int baud_base; |
54 | unsigned int port; | 54 | unsigned int port; |
55 | unsigned int irq; | 55 | unsigned int irq; |
56 | unsigned int flags; | 56 | upf_t flags; |
57 | unsigned char hub6; | 57 | unsigned char hub6; |
58 | unsigned char io_type; | 58 | unsigned char io_type; |
59 | unsigned char __iomem *iomem_base; | 59 | unsigned char __iomem *iomem_base; |