aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
committerJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
commit215faf9c5f6e319e97edea9e178123e07825c14d (patch)
tree32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/irda
parent75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (diff)
drivers/net/*/: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/act200l-sir.c2
-rw-r--r--drivers/net/irda/donauboe.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/irda/act200l-sir.c b/drivers/net/irda/act200l-sir.c
index 37ab8c855719..8ff084f1d236 100644
--- a/drivers/net/irda/act200l-sir.c
+++ b/drivers/net/irda/act200l-sir.c
@@ -199,7 +199,7 @@ static int act200l_reset(struct sir_dev *dev)
199{ 199{
200 unsigned state = dev->fsm.substate; 200 unsigned state = dev->fsm.substate;
201 unsigned delay = 0; 201 unsigned delay = 0;
202 u8 control[9] = { 202 static const u8 control[9] = {
203 ACT200L_REG15, 203 ACT200L_REG15,
204 ACT200L_REG13 | ACT200L_SHDW, 204 ACT200L_REG13 | ACT200L_SHDW,
205 ACT200L_REG21 | ACT200L_EXCK | ACT200L_OSCL, 205 ACT200L_REG21 | ACT200L_EXCK | ACT200L_OSCL,
diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c
index b626cccbccd1..f81d944fc360 100644
--- a/drivers/net/irda/donauboe.c
+++ b/drivers/net/irda/donauboe.c
@@ -818,9 +818,9 @@ toshoboe_probe (struct toshoboe_cb *self)
818{ 818{
819 int i, j, n; 819 int i, j, n;
820#ifdef USE_MIR 820#ifdef USE_MIR
821 int bauds[] = { 9600, 115200, 4000000, 1152000 }; 821 static const int bauds[] = { 9600, 115200, 4000000, 1152000 };
822#else 822#else
823 int bauds[] = { 9600, 115200, 4000000 }; 823 static const int bauds[] = { 9600, 115200, 4000000 };
824#endif 824#endif
825 unsigned long flags; 825 unsigned long flags;
826 826