s390/pci: use macro for attribute creation
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 16 Apr 2014 14:10:18 +0000 (16:10 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 20 May 2014 06:58:48 +0000 (08:58 +0200)
commitb346953ddac0d57d4852ddc2b5cd9e16c84ddd59
treeab7011926812db2349f0bc2d78d1a4529019267e
parentca25f564c484b4f32eec1e667926dcf87ec03234
s390/pci: use macro for attribute creation

Introduce the zpci_attr macro to create read only sysfs attributes
to avoid duplicate code.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_sysfs.c