Lines Matching +full:nvmem +full:- +full:cells
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * nvmem framework provider.
6 * Copyright (C) 2013 Maxime Ripard <maxime.ripard@free-electrons.com>
31 #define NVMEM_DEVID_NONE (-1)
32 #define NVMEM_DEVID_AUTO (-2)
35 * struct nvmem_keepout - NVMEM register keepout range.
48 * struct nvmem_config - NVMEM device configuration
54 * @cells: Optional array of pre-defined NVMEM cells.
55 * @ncells: Number of elements in cells.
58 * @type: Type of the nvmem storage
59 * @read_only: Device is read-only.
69 * @wp-gpio: Write protect pin
71 * Note: A default "nvmem<id>" name will be assigned to the device if
75 * Note: Specifying name and setting id to -1 implies a unique device
76 * whose name is provided as-is (kept unaltered).
84 const struct nvmem_cell_info *cells; member
105 * struct nvmem_cell_table - NVMEM cell definitions for given provider
108 * @cells: Array of cell definitions.
113 * that don't can't access the nvmem provided structure but wish to register
118 const struct nvmem_cell_info *cells; member
126 void nvmem_unregister(struct nvmem_device *nvmem);
131 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem);
140 return ERR_PTR(-EOPNOTSUPP); in nvmem_register()
143 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister() argument
152 devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister() argument
154 return -EOPNOTSUPP; in devm_nvmem_unregister()