Commit 0ecd233b authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

Char: mxser, reorder mxser_cardinfo fields

Reorder fields to save some memory and code on 64bit due to alignment as
suggested by Jan.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Jan Engelhardt <jengelh@computergmbh.de>
Reviewed-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c3667d5c
...@@ -106,41 +106,41 @@ static const struct { ...@@ -106,41 +106,41 @@ static const struct {
#define UART_INFO_NUM ARRAY_SIZE(Gpci_uart_info) #define UART_INFO_NUM ARRAY_SIZE(Gpci_uart_info)
struct mxser_cardinfo { struct mxser_cardinfo {
unsigned int nports;
char *name; char *name;
unsigned int nports;
unsigned int flags; unsigned int flags;
}; };
static const struct mxser_cardinfo mxser_cards[] = { static const struct mxser_cardinfo mxser_cards[] = {
/* 0*/ { 8, "C168 series", }, /* 0*/ { "C168 series", 8, },
{ 4, "C104 series", }, { "C104 series", 4, },
{ 4, "CI-104J series", }, { "CI-104J series", 4, },
{ 8, "C168H/PCI series", }, { "C168H/PCI series", 8, },
{ 4, "C104H/PCI series", }, { "C104H/PCI series", 4, },
/* 5*/ { 4, "C102 series", MXSER_HAS2 }, /* C102-ISA */ /* 5*/ { "C102 series", 4, MXSER_HAS2 }, /* C102-ISA */
{ 4, "CI-132 series", MXSER_HAS2 }, { "CI-132 series", 4, MXSER_HAS2 },
{ 4, "CI-134 series", }, { "CI-134 series", 4, },
{ 2, "CP-132 series", }, { "CP-132 series", 2, },
{ 4, "CP-114 series", }, { "CP-114 series", 4, },
/*10*/ { 4, "CT-114 series", }, /*10*/ { "CT-114 series", 4, },
{ 2, "CP-102 series", MXSER_HIGHBAUD }, { "CP-102 series", 2, MXSER_HIGHBAUD },
{ 4, "CP-104U series", }, { "CP-104U series", 4, },
{ 8, "CP-168U series", }, { "CP-168U series", 8, },
{ 2, "CP-132U series", }, { "CP-132U series", 2, },
/*15*/ { 4, "CP-134U series", }, /*15*/ { "CP-134U series", 4, },
{ 4, "CP-104JU series", }, { "CP-104JU series", 4, },
{ 8, "Moxa UC7000 Serial", }, /* RC7000 */ { "Moxa UC7000 Serial", 8, }, /* RC7000 */
{ 8, "CP-118U series", }, { "CP-118U series", 8, },
{ 2, "CP-102UL series", }, { "CP-102UL series", 2, },
/*20*/ { 2, "CP-102U series", }, /*20*/ { "CP-102U series", 2, },
{ 8, "CP-118EL series", }, { "CP-118EL series", 8, },
{ 8, "CP-168EL series", }, { "CP-168EL series", 8, },
{ 4, "CP-104EL series", }, { "CP-104EL series", 4, },
{ 8, "CB-108 series", }, { "CB-108 series", 8, },
/*25*/ { 4, "CB-114 series", }, /*25*/ { "CB-114 series", 4, },
{ 4, "CB-134I series", }, { "CB-134I series", 4, },
{ 8, "CP-138U series", }, { "CP-138U series", 8, },
{ 4, "POS-104UL series", } { "POS-104UL series", 4, }
}; };
/* driver_data correspond to the lines in the structure above /* driver_data correspond to the lines in the structure above
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment