[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1393034412.3627.11.camel@joe-AO722>
Date: Fri, 21 Feb 2014 18:00:12 -0800
From: Joe Perches <joe@...ches.com>
To: Thomas Winischhofer <thomas@...ischhofer.net>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb <linux-usb@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: sisusb: Use static const, fix typo
Reduce text a bit by using static const.
Fix a symmetric typo and neaten a dev_info call
to 80 columns.
$ size drivers/usb/misc/sisusbvga/sisusb.o*
text data bss dec hex filename
30016 4841 9180 44037 ac05 drivers/usb/misc/sisusbvga/sisusb.o.new
30087 4841 9180 44108 ac4c drivers/usb/misc/sisusbvga/sisusb.o.old
Signed-off-by: Joe Perches <joe@...ches.com>
---
drivers/usb/misc/sisusbvga/sisusb.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c
index de98906..1f89633 100644
--- a/drivers/usb/misc/sisusbvga/sisusb.c
+++ b/drivers/usb/misc/sisusbvga/sisusb.c
@@ -2123,8 +2123,9 @@ sisusb_get_ramconfig(struct sisusb_usb_data *sisusb)
u8 tmp8, tmp82, ramtype;
int bw = 0;
char *ramtypetext1 = NULL;
- const char *ramtypetext2[] = { "SDR SDRAM", "SDR SGRAM",
- "DDR SDRAM", "DDR SGRAM" };
+ static const char *ramtypetext2[] = {
+ "SDR SDRAM", "SDR SGRAM", "DDR SDRAM", "DDR SGRAM"
+ };
static const int busSDR[4] = {64, 64, 128, 128};
static const int busDDR[4] = {32, 32, 64, 64};
static const int busDDRA[4] = {64+32, 64+32 , (64+32)*2, (64+32)*2};
@@ -2146,7 +2147,7 @@ sisusb_get_ramconfig(struct sisusb_usb_data *sisusb)
sisusb->vramsize <<= 1;
bw = busSDR[(tmp8 & 0x03)];
break;
- case 2: ramtypetext1 = "asymmeric";
+ case 2: ramtypetext1 = "asymmetric";
sisusb->vramsize += sisusb->vramsize/2;
bw = busDDRA[(tmp8 & 0x03)];
break;
@@ -2156,8 +2157,9 @@ sisusb_get_ramconfig(struct sisusb_usb_data *sisusb)
break;
}
- dev_info(&sisusb->sisusb_dev->dev, "%dMB %s %s, bus width %d\n", (sisusb->vramsize >> 20), ramtypetext1,
- ramtypetext2[ramtype], bw);
+ dev_info(&sisusb->sisusb_dev->dev, "%dMB %s %s, bus width %d\n",
+ sisusb->vramsize >> 20, ramtypetext1, ramtypetext2[ramtype],
+ bw);
}
static int
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists