Lines Matching refs:nvmem_config
41 struct nvmem_config nvmem_config; member
486 at25->nvmem_config.type = is_fram ? NVMEM_TYPE_FRAM : NVMEM_TYPE_EEPROM; in at25_probe()
487 at25->nvmem_config.name = dev_name(&spi->dev); in at25_probe()
488 at25->nvmem_config.dev = &spi->dev; in at25_probe()
489 at25->nvmem_config.read_only = at25->chip.flags & EE_READONLY; in at25_probe()
490 at25->nvmem_config.root_only = true; in at25_probe()
491 at25->nvmem_config.owner = THIS_MODULE; in at25_probe()
492 at25->nvmem_config.compat = true; in at25_probe()
493 at25->nvmem_config.base_dev = &spi->dev; in at25_probe()
494 at25->nvmem_config.reg_read = at25_ee_read; in at25_probe()
495 at25->nvmem_config.reg_write = at25_ee_write; in at25_probe()
496 at25->nvmem_config.priv = at25; in at25_probe()
497 at25->nvmem_config.stride = 1; in at25_probe()
498 at25->nvmem_config.word_size = 1; in at25_probe()
499 at25->nvmem_config.size = at25->chip.byte_len; in at25_probe()
501 at25->nvmem = devm_nvmem_register(&spi->dev, &at25->nvmem_config); in at25_probe()