summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKomal Bajaj <quic_kbajaj@quicinc.com>2023-08-30 13:56:51 +0300
committerBjorn Andersson <andersson@kernel.org>2023-09-20 05:57:53 +0300
commit54e1f99d91405417b3ddb6050cfba82733c3aa41 (patch)
tree4c14ee63205baeef0cd7c395ed284e3ff8e78bb6 /include
parent16fa93112f26a7a151f3d86a2a9223c564f6e3bf (diff)
downloadlinux-54e1f99d91405417b3ddb6050cfba82733c3aa41.tar.xz
nvmem: core: Add stub for nvmem_cell_read_u8
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nvmem-consumer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h
index 4523e4e83319..6ec4b9743e25 100644
--- 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)
{