typedef int (*nvmem_reg_write_t)(void *priv, unsigned int offset,
                                 void *val, size_t bytes);
 
+/**
+ * struct nvmem_config - NVMEM device configuration
+ *
+ * @dev:       Parent device.
+ * @name:      Optional name.
+ * @id:                Optional device ID used in full name. Ignored if name is NULL.
+ * @owner:     Pointer to exporter module. Used for refcounting.
+ * @cells:     Optional array of pre-defined NVMEM cells.
+ * @ncells:    Number of elements in cells.
+ * @read_only: Device is read-only.
+ * @root_only: Device is accessibly to root only.
+ * @reg_read:  Callback to read data.
+ * @reg_write: Callback to write data.
+ * @size:      Device size.
+ * @word_size: Minimum read/write access granularity.
+ * @stride:    Minimum read/write access stride.
+ * @priv:      User context passed to read/write callbacks.
+ *
+ * Note: A default "nvmem<id>" name will be assigned to the device if
+ * no name is specified in its configuration. In such case "<id>" is
+ * generated with ida_simple_get() and provided id field is ignored.
+ */
 struct nvmem_config {
        struct device           *dev;
        const char              *name;