aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRafał Miłecki <[email protected]>2022-04-29 17:26:46 +0100
committerGreg Kroah-Hartman <[email protected]>2022-05-09 15:44:21 +0200
commitdbc2f62061c6bfba0aee93161ee3194dcee84bd0 (patch)
tree94dda301ed9a24d538c01b25a9ac4e249e00056a /include/linux
parenta15dac8b228677daf8ad7f9855d38734ffa0e7d9 (diff)
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 <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvmem-consumer.h1
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;
};
/**