[svn-commits] tzafrir: linux/trunk r4758 - /linux/trunk/drivers/dahdi/xpp/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 11 10:31:49 CDT 2008


Author: tzafrir
Date: Mon Aug 11 10:31:49 2008
New Revision: 4758

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4758
Log:
xpp_blink is a bit mask of ports, and not boolean anymore.

Modified:
    linux/trunk/drivers/dahdi/xpp/xpd.h
    linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c

Modified: linux/trunk/drivers/dahdi/xpp/xpd.h
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/xpp/xpd.h?view=diff&rev=4758&r1=4757&r2=4758
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpd.h (original)
+++ linux/trunk/drivers/dahdi/xpp/xpd.h Mon Aug 11 10:31:49 2008
@@ -171,7 +171,7 @@
 	atomic_t	open_counter;	/* Number of open channels */
 
 	int		flags;
-	bool		blink_mode;	/* for visual identification */
+	unsigned long	blink_mode;	/* bitmask of blinking ports */
 #define	DEFAULT_LED_PERIOD	(1000/8)	/* in tick */
 
 #ifdef CONFIG_PROC_FS

Modified: linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=4758&r1=4757&r2=4758
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c Mon Aug 11 10:31:49 2008
@@ -625,7 +625,7 @@
 	BUG_ON(!xpd);
 	spin_lock_irqsave(&xpd->lock, flags);
 
-	len += sprintf(page + len, "%d\n", xpd->blink_mode);
+	len += sprintf(page + len, "0x%lX\n", xpd->blink_mode);
 	spin_unlock_irqrestore(&xpd->lock, flags);
 	if (len <= off+count)
 		*eof = 1;
@@ -643,7 +643,7 @@
 	xpd_t		*xpd = data;
 	char		buf[MAX_PROC_WRITE];
 	char		*endp;
-	unsigned	blink;
+	unsigned long	blink;
 
 
 	BUG_ON(!xpd);
@@ -657,7 +657,7 @@
 	blink = simple_strtoul(buf, &endp, 0);
 	if(*endp != '\0' || blink > 0xFFFF)
 		return -EINVAL;
-	XPD_DBG(GENERAL, xpd, "BLINK channels: 0x%X\n", blink);
+	XPD_DBG(GENERAL, xpd, "BLINK channels: 0x%lX\n", blink);
 	xpd->blink_mode = blink;
 	return count;
 }




More information about the svn-commits mailing list