From: Alexander Shiyan Date: Mon, 21 Jan 2013 15:38:57 +0000 (+0400) Subject: serial: sccnxp: Make baudrate table struct static X-Git-Tag: v3.9-rc1~125^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bbed6bc41aa76183449ade053891e28dec0ae3b;p=platform%2Fkernel%2Flinux-3.10.git serial: sccnxp: Make baudrate table struct static This struct is used only for driver, so it should be static. Signed-off-by: Alexander Shiyan Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index c7dec16..caccbe8 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) return 1; } -struct baud_table { +static const struct { u8 csr; u8 acr; u8 mr0; int baud; -}; - -const struct baud_table baud_std[] = { +} baud_std[] = { { 0, ACR_BAUD0, MR0_BAUD_NORMAL, 50, }, { 0, ACR_BAUD1, MR0_BAUD_NORMAL, 75, }, { 1, ACR_BAUD0, MR0_BAUD_NORMAL, 110, },