lkml.org 
[lkml]   [2014]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: sisusb: Use static const, fix typo
Date
From: Joe Perches
> Reduce text a bit by using static const.

If you want to save a few bytes remove the pointers.
(and the fixed RAM text to get below 7 chars).
eg:

> - const char *ramtypetext2[] = { "SDR SDRAM", "SDR SGRAM",
> - "DDR SDRAM", "DDR SGRAM" };

static const char ramtypetext2[8][] = {
"SDR SD", "SDR SG", "DDR SD", "DDR SG"

...
> - 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 %sRAM, bus width %d\n",
sisusb->vramsize >> 20, ramtypetext1, ramtypetext2[ramtype],
bw);

David





\
 
 \ /
  Last update: 2014-02-25 12:01    [W:0.088 / U:4.756 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site