projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16fa931
)
nvmem: core: Add stub for nvmem_cell_read_u8
author
Komal Bajaj
<quic_kbajaj@quicinc.com>
Wed, 30 Aug 2023 10:56:51 +0000
(16:26 +0530)
committer
Bjorn Andersson
<andersson@kernel.org>
Wed, 20 Sep 2023 02:57:53 +0000
(19:57 -0700)
Add the stub nvmem_cell_read_u8() function for drivers running with
CONFIG_NVMEM disabled.
Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com>
Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com>
Link:
https://lore.kernel.org/r/20230830105654.28057-4-quic_kbajaj@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
include/linux/nvmem-consumer.h
patch
|
blob
|
history
diff --git
a/include/linux/nvmem-consumer.h
b/include/linux/nvmem-consumer.h
index 4523e4e8331970d3f6e48cb408f825329f407d8f..6ec4b9743e25d4463fafe5d44d51ab89eacc316d 100644
(file)
--- a/
include/linux/nvmem-consumer.h
+++ b/
include/linux/nvmem-consumer.h
@@
-127,6
+127,12
@@
static inline int nvmem_cell_write(struct nvmem_cell *cell,
return -EOPNOTSUPP;
}
+static inline int nvmem_cell_read_u8(struct device *dev,
+ const char *cell_id, u8 *val)
+{
+ return -EOPNOTSUPP;
+}
+
static inline int nvmem_cell_read_u16(struct device *dev,
const char *cell_id, u16 *val)
{