From 32f0ca0e1a7f3d3e761fd7412cc0d6b1fb1c570b Mon Sep 17 00:00:00 2001 From: "S.J.R. van Schaik" Date: Fri, 26 May 2017 14:13:57 +0200 Subject: [PATCH] flash: remove log2_page_size --- include/flash.h | 1 - source/drivers/sandbox_flash.c | 1 - source/ftl/dev.c | 1 - 3 files changed, 3 deletions(-) diff --git a/include/flash.h b/include/flash.h index 171d604..8748068 100644 --- a/include/flash.h +++ b/include/flash.h @@ -20,7 +20,6 @@ struct flash_ops { struct flash_dev { struct flash_ops *ops; void *priv; - uint8_t log2_page_size; uint8_t log2_block_size; }; diff --git a/source/drivers/sandbox_flash.c b/source/drivers/sandbox_flash.c index 6174a5b..2f89503 100644 --- a/source/drivers/sandbox_flash.c +++ b/source/drivers/sandbox_flash.c @@ -144,7 +144,6 @@ struct flash_dev *flash_probe(void) dev->priv = priv; dev->ops = &stdio_flash_ops; - dev->log2_page_size = ilog2(1); dev->log2_block_size = ilog2(4 * KIB); return dev; diff --git a/source/ftl/dev.c b/source/ftl/dev.c index c394b14..9317d25 100644 --- a/source/ftl/dev.c +++ b/source/ftl/dev.c @@ -82,7 +82,6 @@ struct flash_dev *ftl_mount(struct flash_dev *raw_dev) dev->ops = &ftl_flash_ops; dev->priv = map; - dev->log2_page_size = ilog2(4 * KIB); dev->log2_block_size = ilog2(4 * KIB); return dev;