2 * nvmem framework provider.
4 * Copyright (C) 2015 Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
5 * Copyright (C) 2013 Maxime Ripard <maxime.ripard@free-electrons.com>
7 * This file is licensed under the terms of the GNU General Public
8 * License version 2. This program is licensed "as is" without any
9 * warranty of any kind, whether express or implied.
12 #ifndef _LINUX_NVMEM_PROVIDER_H
13 #define _LINUX_NVMEM_PROVIDER_H
16 struct nvmem_cell_info
;
23 const struct nvmem_cell_info
*cells
;
28 #if IS_ENABLED(CONFIG_NVMEM)
30 struct nvmem_device
*nvmem_register(const struct nvmem_config
*cfg
);
31 int nvmem_unregister(struct nvmem_device
*nvmem
);
35 static inline struct nvmem_device
*nvmem_register(const struct nvmem_config
*c
)
37 return ERR_PTR(-ENOSYS
);
40 static inline int nvmem_unregister(struct nvmem_device
*nvmem
)
45 #endif /* CONFIG_NVMEM */
47 #endif /* ifndef _LINUX_NVMEM_PROVIDER_H */
This page took 0.065324 seconds and 5 git commands to generate.