Skip to content

Commit

Permalink
nvmem: core: Add stub for nvmem_cell_read_u8
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Komal Bajaj authored and Bjorn Andersson committed Sep 20, 2023
1 parent 16fa931 commit 54e1f99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/linux/nvmem-consumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 54e1f99

Please sign in to comment.