[svn-commits] sruffell: linux/trunk r9971 - /linux/trunk/drivers/dahdi/wctdm24xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 2 15:04:06 CDT 2011


Author: sruffell
Date: Thu Jun  2 15:04:02 2011
New Revision: 9971

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9971
Log:
wctdm24xxp: Do not export board number in the device description.

The board number dupliates the information that is available in the
location field. Exporting it as part of the description makes the name
dependent on the driver bind order which is not desirable.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wctdm24xxp/base.c

Modified: linux/trunk/drivers/dahdi/wctdm24xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wctdm24xxp/base.c?view=diff&rev=9971&r1=9970&r2=9971
==============================================================================
--- linux/trunk/drivers/dahdi/wctdm24xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wctdm24xxp/base.c Thu Jun  2 15:04:02 2011
@@ -4056,8 +4056,7 @@
 	else
 		sprintf(s->span.name, "WCTDM/%d", card_position);
 
-	snprintf(s->span.desc, sizeof(s->span.desc) - 1, "%s Board %d",
-		 wc->desc->name, card_position + 1);
+	snprintf(s->span.desc, sizeof(s->span.desc) - 1, "%s", wc->desc->name);
 	snprintf(s->span.location, sizeof(s->span.location) - 1,
 		 "PCI%s Bus %02d Slot %02d",
 		 (wc->desc->flags & FLAG_EXPRESS) ? " Express" : "",




More information about the svn-commits mailing list