lightnvm: make address conversions depend on generic device
authorJavier González <javier@cnexlabs.com>
Thu, 29 Mar 2018 22:05:16 +0000 (00:05 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2018 23:29:09 +0000 (17:29 -0600)
commit7100d50a7e58a6884368001e2b1a32b7169c072c
treeb29aa03fc3dd1942f0d53e58a693bd1f98274acb
parent694715137482b10d5be83b1dadf9a3cdee2ce1bc
lightnvm: make address conversions depend on generic device

On address conversions, use the generic device, instead of the target
device. This allows to use conversions outside of the target's realm.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/core.c
include/linux/lightnvm.h