]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - include/linux/nvmem-provider.h
MAINTAINERS: add co-maintainer for scripts/gdb
[mirror_ubuntu-focal-kernel.git] / include / linux / nvmem-provider.h
index a4fcc90b0f208550561470549d2e0a187dc5b8a4..cd93416d762ed0a63a3b262dec01d657bbadaa80 100644 (file)
 
 struct nvmem_device;
 struct nvmem_cell_info;
+typedef int (*nvmem_reg_read_t)(void *priv, unsigned int offset,
+                               void *val, size_t bytes);
+typedef int (*nvmem_reg_write_t)(void *priv, unsigned int offset,
+                                void *val, size_t bytes);
 
 struct nvmem_config {
        struct device           *dev;
@@ -24,6 +28,12 @@ struct nvmem_config {
        int                     ncells;
        bool                    read_only;
        bool                    root_only;
+       nvmem_reg_read_t        reg_read;
+       nvmem_reg_write_t       reg_write;
+       int     size;
+       int     word_size;
+       int     stride;
+       void    *priv;
        /* To be only used by old driver/misc/eeprom drivers */
        bool                    compat;
        struct device           *base_dev;