Skip to content

Commit

Permalink
serial: sccnxp: Make baudrate table struct static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Shiyan authored and Greg Kroah-Hartman committed Jan 21, 2013
1 parent f548b96 commit 4bbed6b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/tty/serial/sccnxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, },
Expand Down

0 comments on commit 4bbed6b

Please sign in to comment.