WSL2-Linux-Kernel/drivers/atm
Julia Lawall 89d9123e8e solos-pci: use permission-specific DEVICE_ATTR variants
Use DEVICE_ATTR_RW for read-write attributes.  This simplifies the
source code, improves readbility, and reduces the chance of
inconsistencies.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@rw@
declarer name DEVICE_ATTR;
identifier x,x_show,x_store;
@@

DEVICE_ATTR(x, \(0644\|S_IRUGO|S_IWUSR\), x_show, x_store);

@script:ocaml@
x << rw.x;
x_show << rw.x_show;
x_store << rw.x_store;
@@

if not (x^"_show" = x_show && x^"_store" = x_store)
then Coccilib.include_match false

@@
declarer name DEVICE_ATTR_RW;
identifier rw.x,rw.x_show,rw.x_store;
@@

- DEVICE_ATTR(x, \(0644\|S_IRUGO|S_IWUSR\), x_show, x_store);
+ DEVICE_ATTR_RW(x);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-31 15:32:12 -04:00
..
.gitignore
Kconfig
Makefile
adummy.c
ambassador.c
ambassador.h
atmtcp.c
eni.c ATM-ENI: Use kmalloc_array() in eni_start() 2016-09-09 19:26:30 -07:00
eni.h
firestream.c atm: firestream: add more reserved strings 2016-05-31 11:52:59 -07:00
firestream.h
fore200e.c atm: fore200e: Do not drop const qualifier 2016-08-18 23:46:42 -07:00
fore200e.h
he.c ATM-ForeRunnerHE: Use kmalloc_array() in he_init_group() 2016-09-09 19:27:32 -07:00
he.h
horizon.c atm: horizon: Use setup_timer 2016-07-01 05:58:26 -04:00
horizon.h
idt77105.c
idt77105.h
idt77252.c
idt77252.h
idt77252_tables.h
iphase.c atm: iphase: fix newline escape and minor tweak to source formatting 2016-09-15 19:15:55 -04:00
iphase.h
lanai.c
midway.h
nicstar.c ATM-nicstar: Refactor a dev_alloc_skb() call in dequeue_rx() 2016-09-10 21:45:25 -07:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c solos-pci: use permission-specific DEVICE_ATTR variants 2016-10-31 15:32:12 -04:00
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c ATM-ZeitNet: Fix indentation for one DPRINTK() call in start_rx() 2016-09-10 21:46:07 -07:00
zatm.h
zeprom.h