diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2022-04-29 19:26:46 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-05-09 16:44:21 +0300 |
commit | dbc2f62061c6bfba0aee93161ee3194dcee84bd0 (patch) | |
tree | 94dda301ed9a24d538c01b25a9ac4e249e00056a /include | |
parent | a15dac8b228677daf8ad7f9855d38734ffa0e7d9 (diff) | |
download | linux-dbc2f62061c6bfba0aee93161ee3194dcee84bd0.tar.xz |
nvmem: core: support passing DT node in cell info
Some hardware may have NVMEM cells described in Device Tree using
individual nodes. Let drivers pass such nodes to the NVMEM subsystem so
they can be later used by NVMEM consumers.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220429162701.2222-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nvmem-consumer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h index c0c0cefc3b92..980f9c9ac0bc 100644 --- a/include/linux/nvmem-consumer.h +++ b/include/linux/nvmem-consumer.h @@ -25,6 +25,7 @@ struct nvmem_cell_info { unsigned int bytes; unsigned int bit_offset; unsigned int nbits; + struct device_node *np; }; /** |