diff options
| author | Komal Bajaj <[email protected]> | 2023-08-30 16:26:51 +0530 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2023-09-19 19:57:53 -0700 |
| commit | 54e1f99d91405417b3ddb6050cfba82733c3aa41 (patch) | |
| tree | 4c14ee63205baeef0cd7c395ed284e3ff8e78bb6 /include/linux | |
| parent | 16fa93112f26a7a151f3d86a2a9223c564f6e3bf (diff) | |
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 <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nvmem-consumer.h | 6 |
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) { |