OpenCloudOS-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 Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
Makefile Drivers: atm: Makefile: replace the use of <module>-objs with <module>-y 2010-10-21 03:09:48 -07:00
adummy.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
ambassador.c atm: ambassador: use NULL instead of 0 for pointer 2014-02-19 16:39:10 -05:00
ambassador.h ATM: Delete no use FILL_RX_POOLS_IN_BH marco 2011-07-08 09:06:31 -07:00
atmtcp.c drivers/atm/atmtcp.c: fix error return code 2014-08-07 16:02:57 -07:00
eni.c ATM-ENI: Use kmalloc_array() in eni_start() 2016-09-09 19:26:30 -07:00
eni.h eni: fix driver remove function and driver probe error path. 2012-03-16 23:13:20 -07:00
firestream.c atm: firestream: add more reserved strings 2016-05-31 11:52:59 -07:00
firestream.h atm: firestream: remove duplicate define 2013-10-21 18:46:46 -04:00
fore200e.c atm: fore200e: Do not drop const qualifier 2016-08-18 23:46:42 -07:00
fore200e.h Fix common misspellings 2011-03-31 11:26:23 -03:00
he.c ATM-ForeRunnerHE: Use kmalloc_array() in he_init_group() 2016-09-09 19:27:32 -07:00
he.h atm: remove deprecated use of pci api 2015-01-18 00:28:41 -05:00
horizon.c atm: horizon: Use setup_timer 2016-07-01 05:58:26 -04:00
horizon.h
idt77105.c atm: idt77105: Use setup_timer 2015-06-10 22:46:34 -07:00
idt77105.h
idt77252.c atm: remove deprecated use of pci api 2015-01-18 00:28:41 -05:00
idt77252.h Fix common misspellings 2011-03-31 11:26:23 -03:00
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 atm/iphase: rename fregt_t -> ffreg_t 2013-02-08 14:22:05 -05:00
lanai.c atm: remove deprecated use of pci api 2015-01-18 00:28:41 -05:00
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 atm: [nicstar] remove virt_to_bus() and support 64-bit platforms 2010-05-31 00:27:46 -07:00
nicstarmac.c atm: [nicstar] reformatted with Lindent 2010-05-31 00:27:46 -07:00
nicstarmac.copyright
solos-attrlist.c solos: Add 'Firmware' attribute for Traverse overall firmware version 2010-11-08 12:17:04 -08:00
solos-pci.c solos-pci: use permission-specific DEVICE_ATTR variants 2016-10-31 15:32:12 -04:00
suni.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
suni.h
tonga.h
uPD98401.h
uPD98402.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
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