mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
nvmem: core: Add stubs for nvmem_cell_read_variable_le_u32/64 if !CONFIG_NVMEM
When I added nvmem_cell_read_variable_le_u32() and nvmem_cell_read_variable_le_u64() I forgot to add the "static inline" stub functions for when CONFIG_NVMEM wasn't defined. Add them now. This was causing problems with randconfig builds that compiled `drivers/soc/qcom/cpr.c`. Fixes:6feba6a62c("PM: AVS: qcom-cpr: Use nvmem_cell_read_variable_le_u32()") Fixes:a28e824fb8("nvmem: core: Add functions to make number reading easy") Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20210913160551.12907-1-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5fdb55c1ac
commit
7a8aa39d44
@@ -150,6 +150,20 @@ static inline int nvmem_cell_read_u64(struct device *dev,
|
|||||||
return -EOPNOTSUPP;
|
return -EOPNOTSUPP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int nvmem_cell_read_variable_le_u32(struct device *dev,
|
||||||
|
const char *cell_id,
|
||||||
|
u32 *val)
|
||||||
|
{
|
||||||
|
return -EOPNOTSUPP;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline int nvmem_cell_read_variable_le_u64(struct device *dev,
|
||||||
|
const char *cell_id,
|
||||||
|
u64 *val)
|
||||||
|
{
|
||||||
|
return -EOPNOTSUPP;
|
||||||
|
}
|
||||||
|
|
||||||
static inline struct nvmem_device *nvmem_device_get(struct device *dev,
|
static inline struct nvmem_device *nvmem_device_get(struct device *dev,
|
||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user