summaryrefslogtreecommitdiff
path: root/include/linux/lightnvm.h
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-03-30 01:05:11 +0300
committerJens Axboe <axboe@kernel.dk>2018-03-30 02:29:09 +0300
commit3cb98f84d368b3bbe07a2d5bf938e31f74567620 (patch)
tree7a9906d9f8f5835e5338eaf7896cbf66574c242c /include/linux/lightnvm.h
parente46f4e4822bdecf9bcbc2e71b2a3ae7f37464a2d (diff)
downloadlinux-3cb98f84d368b3bbe07a2d5bf938e31f74567620.tar.xz
lightnvm: add minor version to generic geometry
Separate the version between major and minor on the generic geometry and represent it through sysfs in the 2.0 path. The 1.2 path only shows the major version to preserve the existing user space interface. 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>
Diffstat (limited to 'include/linux/lightnvm.h')
-rw-r--r--include/linux/lightnvm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/lightnvm.h b/include/linux/lightnvm.h
index 6e650563b379..7ed8b92d6744 100644
--- a/include/linux/lightnvm.h
+++ b/include/linux/lightnvm.h
@@ -263,7 +263,8 @@ enum {
/* Instance geometry */
struct nvm_geo {
/* device reported version */
- u8 ver_id;
+ u8 major_ver_id;
+ u8 minor_ver_id;
/* instance specific geometry */
int nr_chnls;