xen: xen-pciback: remove DRIVER_ATTR() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2017 14:43:44 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 14:42:30 +0000 (16:42 +0200)
commit0538dcb0171aad2155db405a5416d9df563e1187
tree9316ba5c7398d740927dab994b073dc06c3edbb2
parent6a7a81761bee2a6694c0a5fb1a16b263c96241c1
xen: xen-pciback: remove DRIVER_ATTR() usage

It's better to be explicit and use the DRIVER_ATTR_RW() and
DRIVER_ATTR_RO() macros when defining a driver's sysfs file.

Bonus is this fixes up a checkpatch.pl warning.

This is part of a series to drop DRIVER_ATTR() from the tree entirely.

Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/xen-pciback/pci_stub.c