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>
This commit is contained in:
Alexander Shiyan
2013-01-21 19:38:57 +04:00
committed by Greg Kroah-Hartman
parent f548b96de6
commit 4bbed6bc41

View File

@@ -179,14 +179,12 @@ static int sccnxp_update_best_err(int a, int b, int *besterr)
return 1; return 1;
} }
struct baud_table { static const struct {
u8 csr; u8 csr;
u8 acr; u8 acr;
u8 mr0; u8 mr0;
int baud; int baud;
}; } baud_std[] = {
const struct baud_table baud_std[] = {
{ 0, ACR_BAUD0, MR0_BAUD_NORMAL, 50, }, { 0, ACR_BAUD0, MR0_BAUD_NORMAL, 50, },
{ 0, ACR_BAUD1, MR0_BAUD_NORMAL, 75, }, { 0, ACR_BAUD1, MR0_BAUD_NORMAL, 75, },
{ 1, ACR_BAUD0, MR0_BAUD_NORMAL, 110, }, { 1, ACR_BAUD0, MR0_BAUD_NORMAL, 110, },