blob: 0b68caff1b3c55c16d194307ab1d0b070bf4c98d [file] [log] [blame]
* nvmem framework provider.
* Copyright (C) 2015 Srinivas Kandagatla <>
* Copyright (C) 2013 Maxime Ripard <>
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
struct nvmem_device;
struct nvmem_cell_info;
struct nvmem_config {
struct device *dev;
const char *name;
int id;
struct module *owner;
const struct nvmem_cell_info *cells;
int ncells;
bool read_only;
struct nvmem_device *nvmem_register(const struct nvmem_config *cfg);
int nvmem_unregister(struct nvmem_device *nvmem);
static inline struct nvmem_device *nvmem_register(const struct nvmem_config *c)
return ERR_PTR(-ENOSYS);
static inline int nvmem_unregister(struct nvmem_device *nvmem)
return -ENOSYS;
#endif /* CONFIG_NVMEM */
#endif /* ifndef _LINUX_NVMEM_PROVIDER_H */