]> git.itanic.dy.fi Git - linux-stable/commit
nvmem: core: add per-cell post processing
authorMichael Walle <michael@walle.cc>
Tue, 4 Apr 2023 17:21:24 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 17:41:11 +0000 (19:41 +0200)
commit345ec382cd4b736c36e01f155d08c913b225b736
tree07e3360c2883ae05009d36e45dc5427c91ad60f8
parentb1c37bec1ccfe5ccab72bc0ddc0dfa45c43e2de2
nvmem: core: add per-cell post processing

Instead of relying on the name the consumer is using for the cell, like
it is done for the nvmem .cell_post_process configuration parameter,
provide a per-cell post processing hook. This can then be populated by
the NVMEM provider (or the NVMEM layout) when adding the cell.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230404172148.82422-17-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c
include/linux/nvmem-provider.h