[svn-commits] sruffell: linux/trunk r9890 - /linux/trunk/drivers/dahdi/fxo_modes.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Apr 4 11:26:04 CDT 2011


Author: sruffell
Date: Mon Apr  4 11:26:00 2011
New Revision: 9890

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9890
Log:
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 at digium.com>
Acked-by: Michael Spiceland <mspiceland at digium.com>
Acked-by: Kinsey Moore <kmoore at digium.com>

Modified:
    linux/trunk/drivers/dahdi/fxo_modes.h

Modified: linux/trunk/drivers/dahdi/fxo_modes.h
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/fxo_modes.h?view=diff&rev=9890&r1=9889&r2=9890
==============================================================================
--- linux/trunk/drivers/dahdi/fxo_modes.h (original)
+++ linux/trunk/drivers/dahdi/fxo_modes.h Mon Apr  4 11:26:00 2011
@@ -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 */




More information about the svn-commits mailing list