diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-01-21 10:38:57 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-21 16:56:46 -0500 |
commit | 4bbed6bc41aa76183449ade053891e28dec0ae3b (patch) | |
tree | caa6d6fed72fa29c7ecb29347fcc43abae61ed5a /drivers/tty/serial/sccnxp.c | |
parent | f548b96de684c86c72cd7ba019c03a7afe94fd53 (diff) |
serial: sccnxp: Make baudrate table struct static
This struct is used only for driver, so it should be static.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
-rw-r--r-- | drivers/tty/serial/sccnxp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index c7dec1678f65..caccbe8fc1be 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c | |||
@@ -179,14 +179,12 @@ static int sccnxp_update_best_err(int a, int b, int *besterr) | |||
179 | return 1; | 179 | return 1; |
180 | } | 180 | } |
181 | 181 | ||
182 | struct baud_table { | 182 | static const struct { |
183 | u8 csr; | 183 | u8 csr; |
184 | u8 acr; | 184 | u8 acr; |
185 | u8 mr0; | 185 | u8 mr0; |
186 | int baud; | 186 | int baud; |
187 | }; | 187 | } baud_std[] = { |
188 | |||
189 | const struct baud_table baud_std[] = { | ||
190 | { 0, ACR_BAUD0, MR0_BAUD_NORMAL, 50, }, | 188 | { 0, ACR_BAUD0, MR0_BAUD_NORMAL, 50, }, |
191 | { 0, ACR_BAUD1, MR0_BAUD_NORMAL, 75, }, | 189 | { 0, ACR_BAUD1, MR0_BAUD_NORMAL, 75, }, |
192 | { 1, ACR_BAUD0, MR0_BAUD_NORMAL, 110, }, | 190 | { 1, ACR_BAUD0, MR0_BAUD_NORMAL, 110, }, |