]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-blk: modernize sysfs attribute creation
authorHannes Reinecke <hare@suse.de>
Fri, 28 Sep 2018 06:17:23 +0000 (08:17 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2018 14:30:33 +0000 (08:30 -0600)
commit747456bdf05d37643ff4c368afb78a9ca59f775e
tree9dc5e53a438c59ed81466f1a5936ed9366255ff6
parenta352c923f84b834ab90a4fa66b2aeeb5632f3185
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>
drivers/block/virtio_blk.c