OSDN Git Service

dmaengine: ppc4xx: remove DRIVER_ATTR() usage
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2017 12:56:28 +0000 (14:56 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 21 Jul 2017 06:32:49 +0000 (12:02 +0530)
commit13efe1a05384bc405cac7187e02b547e5f40e614
treeac93e548f060f77ae0e5ec96f4cbdf1c57d4d1fe
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
dmaengine: ppc4xx: 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.

Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ppc4xx/adma.c