linux/drivers/staging/dgnc
Roberta Dobrescu 707505b58e staging: dgnc: Replace non-standard spinlock's macros
This patch replaces non-standard spinlock's macros.
It is done using coccinelle and the following semantic patch:

@@
expression x;
@@

- DGNC_SPINLOCK_INIT(x)
+ spin_lock_init(&x)

@@
expression x, y;
@@

- DGNC_LOCK(x, y)
+ spin_lock_irqsave(&x, y)

@@
expression x, y;
@@

- DGNC_UNLOCK(x, y)
+ spin_unlock_irqrestore(&x, y)

@used_by_lock exists@
typedef ulong;
symbol lock_flags;
position p1, p2;
@@

(
 ulong lock_flags@p1;
|
 unsigned long lock_flags@p2;
)
...
(
 spin_lock_irqsave(..., lock_flags)
|
 spin_unlock_irqrestore(..., lock_flags)
)

@@
position used_by_lock.p1, used_by_lock.p2;
@@

(
- ulong lock_flags@p1;
+ unsigned long flags;
|
- unsigned long lock_flags@p2;
+ unsigned long flags;
)
<...
- lock_flags
+ flags
...>

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-09-23 20:31:32 -07:00
..
dgnc_cls.c staging: dgnc: Replace non-standard spinlock's macros 2014-09-23 20:31:32 -07:00
dgnc_cls.h staging: dgnc: UART_IIR_XOFF code is buggy 2014-05-15 13:46:00 -07:00
dgnc_driver.c staging: dgnc: split two assignments into the two assignments on two lines. 2014-09-02 10:44:33 -07:00
dgnc_driver.h staging: dgnc: Fix unnecessary space warning. 2014-09-19 17:25:22 -07:00
dgnc_kcompat.h staging: dgnc: Remove KERNEL_VERSION check 2013-09-30 18:47:00 -07:00
dgnc_mgmt.c staging: dgnc: remove DPR Macros and related codes. 2014-08-30 14:02:34 -07:00
dgnc_mgmt.h staging: dgnc: removes ifdef HAVE_UNLOCKED_IOCTL conditionals 2013-08-20 16:28:40 -07:00
dgnc_neo.c staging: dgnc: split two assignments into the two assignments on two lines. 2014-09-02 10:44:33 -07:00
dgnc_neo.h staging: dgnc: Fix typo in staging/dgnc 2013-09-17 07:47:46 -07:00
dgnc_pci.h staging: dgnc: removes CVS code from files 2013-08-21 10:48:40 -07:00
dgnc_sysfs.c staging: dgnc: Fix unnecessary braces warning. 2014-09-23 13:36:56 -07:00
dgnc_sysfs.h staging: dgnc: renames board_t to dgnc_board 2013-09-17 07:47:43 -07:00
dgnc_tty.c Staging: dgnc: Merge lines and remove unused variable for immediate return 2014-09-19 17:25:22 -07:00
dgnc_tty.h staging: dgnc: renames board_t to dgnc_board 2013-09-17 07:47:43 -07:00
dgnc_types.h
dgnc_utils.c staging: dgnc: Move utility functions out of dgnc_driver.c 2014-08-16 12:23:13 -07:00
dgnc_utils.h staging: dgnc: Move utility functions out of dgnc_driver.c 2014-08-16 12:23:13 -07:00
digi.h staging: dgnc: remove commented code 2014-07-27 11:39:45 -07:00
dpacompat.h staging: dgnc: dpacompat.h: removes trailing whitespace 2013-08-21 09:44:05 -07:00
Kconfig staging: dgnc: Kconfig: add dependency PCI for it 2013-08-26 06:29:09 -07:00
Makefile staging: dgnc: Move utility functions out of dgnc_driver.c 2014-08-16 12:23:13 -07:00
TODO staging: dgnc: split two assignments into the two assignments on two lines. 2014-09-02 10:44:33 -07:00