blk-integrity: convert to struct device_attribute
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 18 Mar 2023 17:36:24 +0000 (17:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Apr 2023 00:22:50 +0000 (18:22 -0600)
commit76b8c319f02715e14abdbbbdd6508e83a1059bcc
treede343bce52dda3d21f0086c3df99bbfa7240b543
parent3315e169b446249c1b61ff988d157238f4b2c5a0
blk-integrity: convert to struct device_attribute

An upcoming patch will register the integrity attributes directly with
the struct device kobject.
For this the attributes have to be implemented in terms of
struct device_attribute.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20230309-kobj_release-gendisk_integrity-v3-2-ceccb4493c46@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-integrity.c