But this is not nvmem provider but just describes the cells for any+TBH, this looks completely incorrect way to do this and misuse of nvmem
+ nvmem = of_nvmem_device_get(np, NULL);
+ if (IS_ERR(nvmem))
+ return PTR_ERR(nvmem);
+
consumer interface.
Ideally nvmem provider driver should populate "cells" in struct nvmem_config
after decoding them and then register nvmem provider.
That should just work!
--srini
nvmem device, because ONIE uses special TLV structure on the nvmem
device. So from the nvmem device point it is a consumer but provides the cells
for the given device.