From 9a4ffd637c820aaef680c3c800f378c0cb1e1e77 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 4 Apr 2011 16:26:00 +0000 Subject: wctdm24xxp, wctdm: Reduce memory used by fxo_modes array. Saves ~2K bytes from the size of wctdm24xxp.ko module, which saves system memory when the driver is loaded. Signed-off-by: Shaun Ruffell Acked-by: Michael Spiceland Acked-by: Kinsey Moore git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9890 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/fxo_modes.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'drivers/dahdi') diff --git a/drivers/dahdi/fxo_modes.h b/drivers/dahdi/fxo_modes.h index 2b2a7c9..f2de064 100644 --- a/drivers/dahdi/fxo_modes.h +++ b/drivers/dahdi/fxo_modes.h @@ -25,21 +25,21 @@ #ifndef _FXO_MODES_H #define _FXO_MODES_H -static struct fxo_mode { - char *name; - int ohs; - int ohs2; - int rz; - int rt; - int ilim; - int dcv; - int mini; - int acim; - int ring_osc; - int ring_x; - unsigned int battdebounce; /* in milliseconds */ - unsigned int battalarm; /* in milliseconds */ - unsigned int battthresh; /* unknown units */ +static const struct fxo_mode { + const char *name; + unsigned char ohs:1; + unsigned char ohs2:1; + unsigned char rz:1; + unsigned char rt:1; + unsigned char ilim:1; + unsigned char dcv:2; + unsigned char mini:2; + unsigned char acim:4; + unsigned short int ring_osc; + unsigned short int ring_x; + unsigned short int battdebounce; /* in milliseconds */ + unsigned short int battalarm; /* in milliseconds */ + unsigned short int battthresh; /* unknown units */ } fxo_modes[] = { /* US, Canada */ -- cgit v1.2.3