lightnvm: use kobj_to_dev()
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tue, 13 Apr 2021 10:52:54 +0000 (10:52 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Apr 2021 15:16:12 +0000 (09:16 -0600)
commit327e1d2957ab7dfdc0334f70d89ffed03040c6a5
treed3cffd03ef826c02751582af2c9e23dbdf32372f
parenta8ed1a0607cfa5478ff6009539f44790c4d0956d
lightnvm: use kobj_to_dev()

This fixs coccicheck warning:

drivers/nvme//host/lightnvm.c:1243:60-61: WARNING opportunity for
kobj_to_dev()

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Matias Bjørling <matias.bjorling@wdc.com>
Link: https://lore.kernel.org/r/20210413105257.159260-2-matias.bjorling@wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/lightnvm.c