summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2013-10-14 22:48:04 +0900
committerJames Bottomley <JBottomley@Parallels.com>2013-12-16 10:57:50 -0800
commit8206937916bce22e79531f1eb2c54947ea3276a1 (patch)
tree0c67daf8d7c86393f405b6e7197631eb0a30c199 /include/scsi
parent319e2e3f63c348a9b66db4667efa73178e18b17d (diff)
downloadtalos-obmc-linux-8206937916bce22e79531f1eb2c54947ea3276a1.tar.gz
talos-obmc-linux-8206937916bce22e79531f1eb2c54947ea3276a1.zip
[SCSI] scsi_debug: simplify creation and destruction of driver attribute files
Instead of repeatedly calling driver_create_file() to create driver attribute files, This achieves the same thing by constructing an array of driver_attribute and setting it to bus_type->drv_groups. This change simplifies both creation and destruction of the attribute files, and also removes sparse warning caused by driver_attributes which are unnecessarily declared as global. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Acked-by: Douglas Gilbert <dgilbert@interlog.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud