OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f548b96
)
serial: sccnxp: Make baudrate table struct static
author
Alexander Shiyan
<shc_work@mail.ru>
Mon, 21 Jan 2013 15:38:57 +0000
(19:38 +0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 21:56:46 +0000
(13:56 -0800)
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>
drivers/tty/serial/sccnxp.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/sccnxp.c
b/drivers/tty/serial/sccnxp.c
index
c7dec16
..
caccbe8
100644
(file)
--- 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;
}
-st
ruct baud_table
{
+st
atic 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, },