commit | e982c4d0a29b1d61fbe7716a8dcf8984936d6730 | [log] [tgz] |
---|---|---|
author | Hannes Reinecke <hare@suse.de> | Fri Sep 28 08:17:23 2018 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Sep 28 08:30:33 2018 -0600 |
tree | 9dc5e53a438c59ed81466f1a5936ed9366255ff6 | |
parent | 98af4d4df889dcea3bc0ce6b8a04759658ba8826 [diff] |
virtio-blk: modernize sysfs attribute creation Use new-style DEVICE_ATTR_RO/DEVICE_ATTR_RW to create the sysfs attributes and register the disk with default sysfs attribute groups. Signed-off-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Acked-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>