mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 23:54:04 +08:00
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>
This commit is contained in:
parent
16fa93112f
commit
54e1f99d91
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user