diff options
author | Simon A. F. Lund <slund@cnexlabs.com> | 2016-05-06 20:03:02 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-06 12:51:10 -0600 |
commit | 6063fe399d0913e7bd4462650cd4f31b479a83c9 (patch) | |
tree | a03964afaef6422de511c1377d518f887efa00fd /include/linux | |
parent | 909049a7199947abbc6a923e4cf5cff1857d4205 (diff) | |
download | linux-stable-6063fe399d0913e7bd4462650cd4f31b479a83c9.tar.gz linux-stable-6063fe399d0913e7bd4462650cd4f31b479a83c9.tar.bz2 linux-stable-6063fe399d0913e7bd4462650cd4f31b479a83c9.zip |
lightnvm: rename nvm_targets to nvm_tgt_type
The functions nvm_register_target(), nvm_unregister_target() and
associated list refers to a target type that is being registered by a
target type module. Rename nvm_*_targets() to nvm_*_tgt_type(), so that
the intension is clear.
This enables target instances to use the _nvm_*_targets() naming.
Signed-off-by: Simon A. F. Lund <slund@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/lightnvm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h index dacaa2850428..497da91510b2 100644 --- a/include/linux/lightnvm.h +++ b/include/linux/lightnvm.h @@ -453,8 +453,8 @@ struct nvm_tgt_type { struct list_head list; }; -extern int nvm_register_target(struct nvm_tgt_type *); -extern void nvm_unregister_target(struct nvm_tgt_type *); +extern int nvm_register_tgt_type(struct nvm_tgt_type *); +extern void nvm_unregister_tgt_type(struct nvm_tgt_type *); extern void *nvm_dev_dma_alloc(struct nvm_dev *, gfp_t, dma_addr_t *); extern void nvm_dev_dma_free(struct nvm_dev *, void *, dma_addr_t); |