diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-04-04 16:26:00 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-04-04 16:26:00 +0000 |
commit | 9a4ffd637c820aaef680c3c800f378c0cb1e1e77 (patch) | |
tree | 4200a0ce42a22bad36f3fd58546bac6326e1ebeb /drivers/dahdi | |
parent | 4d0fa40b02d238298f045ac7bf70f4ae22150818 (diff) |
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 <sruffell@digium.com>
Acked-by: Michael Spiceland <mspiceland@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9890 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/fxo_modes.h | 30 |
1 files changed, 15 insertions, 15 deletions
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 */ |