[svn-commits] sruffell: branch linux/sruffell/dahdi-linux-withidle r7501 - /linux/team/sruf...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 6 14:33:19 CST 2009


Author: sruffell
Date: Fri Nov  6 14:33:15 2009
New Revision: 7501

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7501
Log:
wcte12xp: Remove unused flag member and make const the t1_descs.

Modified:
    linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/base.c
    linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/wcte12xp.h

Modified: linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/base.c?view=diff&rev=7501&r1=7500&r2=7501
==============================================================================
--- linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/base.c (original)
+++ linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/base.c Fri Nov  6 14:33:15 2009
@@ -87,13 +87,12 @@
 spinlock_t ifacelock = SPIN_LOCK_UNLOCKED;
 
 struct t1_desc {
-	char *name;
-	int flags;
+	const char *name;
 };
 
-static struct t1_desc te120p = { "Wildcard TE120P", 0 };
-static struct t1_desc te122 = { "Wildcard TE122", 0 };
-static struct t1_desc te121 = { "Wildcard TE121", 0 };
+static const struct t1_desc te120p = {"Wildcard TE120P"};
+static const struct t1_desc te122 = {"Wildcard TE122"};
+static const struct t1_desc te121 = {"Wildcard TE121"};
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
 static kmem_cache_t *cmd_cache;

Modified: linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/wcte12xp.h
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/wcte12xp.h?view=diff&rev=7501&r1=7500&r2=7501
==============================================================================
--- linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/wcte12xp.h (original)
+++ linux/team/sruffell/dahdi-linux-withidle/drivers/dahdi/wcte12xp/wcte12xp.h Fri Nov  6 14:33:15 2009
@@ -108,7 +108,7 @@
 	int losalarmcount;
 	int aisalarmcount;
 	int yelalarmcount;
-	char *variety;
+	const char *variety;
 	char name[80];
 	unsigned long blinktimer;
 	int loopupcnt;




More information about the svn-commits mailing list