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>
30 #define NVMEM_DEVID_NONE (-1)
31 #define NVMEM_DEVID_AUTO (-2)
34 * struct nvmem_config - NVMEM device configuration
40 * @cells: Optional array of pre-defined NVMEM cells.
41 * @ncells: Number of elements in cells.
42 * @type: Type of the nvmem storage
43 * @read_only: Device is read-only.
52 * @wp-gpio: Write protect pin
54 * Note: A default "nvmem<id>" name will be assigned to the device if
58 * Note: Specifying name and setting id to -1 implies a unique device
59 * whose name is provided as-is (kept unaltered).
67 const struct nvmem_cell_info *cells; member
85 * struct nvmem_cell_table - NVMEM cell definitions for given provider
88 * @cells: Array of cell definitions.
93 * that don't can't access the nvmem provided structure but wish to register
98 const struct nvmem_cell_info *cells; member
106 void nvmem_unregister(struct nvmem_device *nvmem);
111 int devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem);
120 return ERR_PTR(-EOPNOTSUPP); in nvmem_register()
123 static inline void nvmem_unregister(struct nvmem_device *nvmem) {} in nvmem_unregister() argument
132 devm_nvmem_unregister(struct device *dev, struct nvmem_device *nvmem) in devm_nvmem_unregister() argument
134 return -EOPNOTSUPP; in devm_nvmem_unregister()