summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2021-01-18 21:55:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-01-19 11:06:30 +0100
commitb090a12da2d01a93a090dec8fa70db674748b8ca (patch)
tree59dceea7b51a00525a72958e33a3f6a28d33b677
parent1ba2b002a50cc4985f1a3a5afc4837023c73dab4 (diff)
downloadbarebox-b090a12da2d01a93a090dec8fa70db674748b8ca.tar.gz
barebox-b090a12da2d01a93a090dec8fa70db674748b8ca.tar.xz
nvmem: add missing stubs
Add missing stubs for nvmem_device_cell_read/write(). Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/linux/nvmem-consumer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/nvmem-consumer.h b/include/linux/nvmem-consumer.h
index 2f79014c0f..d86377bfda 100644
--- a/include/linux/nvmem-consumer.h
+++ b/include/linux/nvmem-consumer.h
@@ -84,6 +84,20 @@ static inline struct nvmem_device *nvmem_device_get(struct device_d *dev,
static inline void nvmem_device_put(struct nvmem_device *nvmem)
{
}
+
+static inline ssize_t nvmem_device_cell_read(struct nvmem_device *nvmem,
+ struct nvmem_cell_info *info,
+ void *buf)
+{
+ return -EOPNOTSUPP;
+}
+
+static inline int nvmem_device_cell_write(struct nvmem_device *nvmem,
+ struct nvmem_cell_info *info,
+ void *buf)
+{
+ return -EOPNOTSUPP;
+}
#endif /* CONFIG_NVMEM */
#if IS_ENABLED(CONFIG_NVMEM) && IS_ENABLED(CONFIG_OFTREE)