Re: [PATCH 2/3] nvmem: core: allow .read_post_process() callbacks to adjust data length

From: Michael Walle
Date: Thu Jan 05 2023 - 16:22:43 EST


Hi,

Am 2023-01-05 18:10, schrieb Rafał Miłecki:
From: Rafał Miłecki <rafal@xxxxxxxxxx>

Sometimes reading NVMEM cell value involves some data reformatting. It
requires passing updated size value to the caller. Support that.

Wouldn't it make more sense to convert that driver to
proper nvmem layouts, where
(1) you get that for free,
(2) support others storages than just mtd
(3) don't duplicate the mtd read code

-michael