Commit 54e1f99d authored by Komal Bajaj's avatar Komal Bajaj Committed by Bjorn Andersson

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: default avatarKomal Bajaj <quic_kbajaj@quicinc.com>
Reviewed-by: default avatarMukesh Ojha <quic_mojha@quicinc.com>
Link: https://lore.kernel.org/r/20230830105654.28057-4-quic_kbajaj@quicinc.comSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 16fa9311
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment