Re: [PATCH 1/2] nvmem: core: add nvmem_cell_read_common

From: Srinivas Kandagatla
Date: Mon Feb 17 2020 - 05:47:42 EST




On 26/01/2020 19:56, Yangtao Li wrote:
Now there are nvmem_cell_read_u16 and nvmem_cell_read_u32.
They are very similar, let's strip out a common part.

And use nvmem_cell_read_common to simplify their implementation.

Signed-off-by: Yangtao Li <tiny.windzz@xxxxxxxxx>
---
drivers/nvmem/core.c | 54 ++++++++++++++++----------------------------
1 file changed, 19 insertions(+), 35 deletions(-)

diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c

Applied both,

thanks,
srini