Merge tag 'f2fs-for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk...
[sfrench/cifs-2.6.git] / include / linux / nvmem-provider.h
index f89598bc4e1cb3d5036c48d50fe357f260de6d50..24def6ad09bb0b7eae0636456dcb14af4f161203 100644 (file)
@@ -77,6 +77,9 @@ struct nvmem_device *devm_nvmem_register(struct device *dev,
 
 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem);
 
+int nvmem_add_cells(struct nvmem_device *nvmem,
+                   const struct nvmem_cell_info *info,
+                   int ncells);
 #else
 
 static inline struct nvmem_device *nvmem_register(const struct nvmem_config *c)
@@ -99,6 +102,14 @@ static inline int
 devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem)
 {
        return nvmem_unregister(nvmem);
+
+}
+
+static inline int nvmem_add_cells(struct nvmem_device *nvmem,
+                                 const struct nvmem_cell_info *info,
+                                 int ncells)
+{
+       return -ENOSYS;
 }
 
 #endif /* CONFIG_NVMEM */