Lines Matching refs:nvmem_config
58 struct nvmem_config nvmem_config; member
384 if (offset + bytes > data->nvmem_config.size) in adm1266_nvmem_read()
388 memset(data->dev_mem, 0, data->nvmem_config.size); in adm1266_nvmem_read()
404 data->nvmem_config.name = dev_name(&data->client->dev); in adm1266_config_nvmem()
405 data->nvmem_config.dev = &data->client->dev; in adm1266_config_nvmem()
406 data->nvmem_config.root_only = true; in adm1266_config_nvmem()
407 data->nvmem_config.read_only = true; in adm1266_config_nvmem()
408 data->nvmem_config.owner = THIS_MODULE; in adm1266_config_nvmem()
409 data->nvmem_config.reg_read = adm1266_nvmem_read; in adm1266_config_nvmem()
410 data->nvmem_config.cells = adm1266_nvmem_cells; in adm1266_config_nvmem()
411 data->nvmem_config.ncells = ARRAY_SIZE(adm1266_nvmem_cells); in adm1266_config_nvmem()
412 data->nvmem_config.priv = data; in adm1266_config_nvmem()
413 data->nvmem_config.stride = 1; in adm1266_config_nvmem()
414 data->nvmem_config.word_size = 1; in adm1266_config_nvmem()
415 data->nvmem_config.size = adm1266_nvmem_cells[0].bytes; in adm1266_config_nvmem()
417 data->dev_mem = devm_kzalloc(&data->client->dev, data->nvmem_config.size, GFP_KERNEL); in adm1266_config_nvmem()
421 data->nvmem = devm_nvmem_register(&data->client->dev, &data->nvmem_config); in adm1266_config_nvmem()