summaryrefslogtreecommitdiff
path: root/drivers/nvmem/imx-ocotp-ele.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/nvmem/imx-ocotp-ele.c')
-rw-r--r--drivers/nvmem/imx-ocotp-ele.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvmem/imx-ocotp-ele.c b/drivers/nvmem/imx-ocotp-ele.c
index 7cf7e809a8f5..a0d2985c6d03 100644
--- a/drivers/nvmem/imx-ocotp-ele.c
+++ b/drivers/nvmem/imx-ocotp-ele.c
@@ -131,6 +131,7 @@ static int imx_ocotp_cell_pp(void *context, const char *id, int index,
static void imx_ocotp_fixup_dt_cell_info(struct nvmem_device *nvmem,
struct nvmem_cell_info *cell)
{
+ cell->raw_len = round_up(cell->bytes, 4);
cell->read_post_process = imx_ocotp_cell_pp;
}