diff options
Diffstat (limited to 'drivers/staging/comedi/comedi_rt.h')
-rw-r--r-- | drivers/staging/comedi/comedi_rt.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/staging/comedi/comedi_rt.h b/drivers/staging/comedi/comedi_rt.h index e7fd57f92ee..61852bf5adc 100644 --- a/drivers/staging/comedi/comedi_rt.h +++ b/drivers/staging/comedi/comedi_rt.h @@ -45,13 +45,13 @@ #ifdef CONFIG_COMEDI_RTL #include <rtl_core.h> #include <rtl_time.h> -//#ifdef RTLINUX_VERSION_CODE +/* #ifdef RTLINUX_VERSION_CODE */ #include <rtl_sync.h> -//#endif +/* #endif */ #define rt_printk rtl_printf #endif #ifdef CONFIG_COMEDI_FUSION -#define rt_printk(format, args...) printk(format , ## args ) +#define rt_printk(format, args...) printk(format , ## args) #endif /* CONFIG_COMEDI_FUSION */ #ifdef CONFIG_PRIORITY_IRQ #define rt_printk printk @@ -59,27 +59,27 @@ int comedi_request_irq(unsigned int irq, irqreturn_t(*handler) (int, void *PT_REGS_ARG), unsigned long flags, const char *device, - comedi_device * dev_id); -void comedi_free_irq(unsigned int irq, comedi_device * dev_id); + comedi_device *dev_id); +void comedi_free_irq(unsigned int irq, comedi_device *dev_id); void comedi_rt_init(void); void comedi_rt_cleanup(void); -int comedi_switch_to_rt(comedi_device * dev); -void comedi_switch_to_non_rt(comedi_device * dev); -void comedi_rt_pend_wakeup(wait_queue_head_t * q); +int comedi_switch_to_rt(comedi_device *dev); +void comedi_switch_to_non_rt(comedi_device *dev); +void comedi_rt_pend_wakeup(wait_queue_head_t *q); extern int rt_pend_call(void (*func) (int arg1, void *arg2), int arg1, void *arg2); #else -#define comedi_request_irq(a,b,c,d,e) request_irq(a,b,c,d,e) -#define comedi_free_irq(a,b) free_irq(a,b) -#define comedi_rt_init() do{}while(0) -#define comedi_rt_cleanup() do{}while(0) +#define comedi_request_irq(a, b, c, d, e) request_irq(a, b, c, d, e) +#define comedi_free_irq(a, b) free_irq(a, b) +#define comedi_rt_init() do {} while (0) +#define comedi_rt_cleanup() do {} while (0) #define comedi_switch_to_rt(a) (-1) -#define comedi_switch_to_non_rt(a) do{}while(0) -#define comedi_rt_pend_wakeup(a) do{}while(0) +#define comedi_switch_to_non_rt(a) do {} while (0) +#define comedi_rt_pend_wakeup(a) do {} while (0) -#define rt_printk(format,args...) printk(format,##args) +#define rt_printk(format, args...) printk(format, ##args) #endif @@ -89,7 +89,7 @@ extern int rt_pend_call(void (*func) (int arg1, void *arg2), int arg1, #define comedi_spin_lock_irqsave(lock_ptr, flags) \ (flags = __comedi_spin_lock_irqsave(lock_ptr)) -static inline unsigned long __comedi_spin_lock_irqsave(spinlock_t * lock_ptr) +static inline unsigned long __comedi_spin_lock_irqsave(spinlock_t *lock_ptr) { unsigned long flags; @@ -112,7 +112,7 @@ static inline unsigned long __comedi_spin_lock_irqsave(spinlock_t * lock_ptr) return flags; } -static inline void comedi_spin_unlock_irqrestore(spinlock_t * lock_ptr, +static inline void comedi_spin_unlock_irqrestore(spinlock_t *lock_ptr, unsigned long flags) { |