[dahdi-commits] sruffell: linux/trunk r6115 - /linux/trunk/drivers/dahdi/voicebus.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Mar 11 09:50:15 CDT 2009
Author: sruffell
Date: Wed Mar 11 09:50:12 2009
New Revision: 6115
URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6115
Log:
Adding spaces after commas.
Modified:
linux/trunk/drivers/dahdi/voicebus.c
Modified: linux/trunk/drivers/dahdi/voicebus.c
URL: http://svn.digium.com/svn-view/dahdi/linux/trunk/drivers/dahdi/voicebus.c?view=diff&rev=6115&r1=6114&r2=6115
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus.c (original)
+++ linux/trunk/drivers/dahdi/voicebus.c Wed Mar 11 09:50:12 2009
@@ -157,7 +157,7 @@
/*! Level of debugging information. 0=None, 5=Insane. */
atomic_t debuglevel;
/*! Cache of buffer objects. */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
kmem_cache_t *buffer_cache;
#else
struct kmem_cache *buffer_cache;
@@ -228,8 +228,8 @@
#define STOP 4
#if VOICEBUS_DEFERRED == WORKQUEUE
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
/*! \brief Make the current task real-time. */
static void
vb_setup_deferred(void *data)
@@ -245,7 +245,7 @@
static void
vb_set_workqueue_priority(struct voicebus *vb)
{
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
DECLARE_WORK(deferred_setup, vb_setup_deferred, NULL);
#else
DECLARE_WORK(deferred_setup, vb_setup_deferred);
@@ -975,7 +975,7 @@
static unsigned long
vb_wait_for_completion_timeout(struct completion *x, unsigned long timeout)
{
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11)
/* There is a race condition here. If x->done is reset to 0
* before the call to wait_for_completion after this thread wakes.
*/
@@ -1077,7 +1077,7 @@
/* We must subtract two from this number since there
* are always two buffers in the TX FIFO.
*/
- VB_PRINTK(vb,ERR,
+ VB_PRINTK(vb, ERR,
"ERROR: Unable to service card within %d ms "\
"and unable to further increase latency.\n",
DRING_SIZE-2);
@@ -1182,7 +1182,7 @@
* since it doesn't employ any locking on the voicebus interface.
*/
static irqreturn_t
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
vb_isr(int irq, void *dev_id, struct pt_regs *regs)
#else
vb_isr(int irq, void *dev_id)
@@ -1271,7 +1271,7 @@
{
unsigned long start = jiffies;
struct voicebus *vb = (struct voicebus *)data;
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
vb_isr(0, vb, 0);
#else
vb_isr(0, vb);
@@ -1285,7 +1285,7 @@
#if VOICEBUS_DEFERRED == WORKQUEUE
static void
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
vb_workfunc(void *data)
{
struct voicebus *vb = data;
@@ -1341,7 +1341,7 @@
retval = -ENOMEM;
goto cleanup;
}
- memset(vb,0,sizeof(*vb));
+ memset(vb, 0, sizeof(*vb));
voicebus_setdebuglevel(vb, debuglevel);
/* \todo make sure there is a note that the caller needs to make sure
* board_name stays in memory until voicebus_release is called.
@@ -1361,12 +1361,12 @@
* there should only be one producer / consumer (the hardware or the
* deferred processing function). */
vb->workqueue = create_singlethread_workqueue(board_name);
-# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
+# if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
INIT_WORK(&vb->workitem, vb_workfunc, vb);
# else
INIT_WORK(&vb->workitem, vb_workfunc);
# endif
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 18)
vb_set_workqueue_priority(vb);
# endif
#elif VOICEBUS_DEFERRED == TASKLET
@@ -1383,9 +1383,9 @@
/* \todo This cache should be shared by all instances supported by
* this driver. */
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
vb->buffer_cache = kmem_cache_create(board_name, vb->framesize, 0,
-#if LINUX_VERSION_CODE == KERNEL_VERSION(2,6,22)
+#if LINUX_VERSION_CODE == KERNEL_VERSION(2, 6, 22)
SLAB_HWCACHE_ALIGN | SLAB_STORE_USER, NULL, NULL);
#else
SLAB_HWCACHE_ALIGN, NULL, NULL);
@@ -1444,7 +1444,7 @@
vb_enable_io_access(vb);
#if VOICEBUS_DEFERRED != TIMER
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
# define VB_IRQ_SHARED SA_SHIRQ
#else
# define VB_IRQ_SHARED IRQF_SHARED
More information about the dahdi-commits
mailing list