[PATCH v6 1/3] nvmem: sunxi-sid: read NVMEM size from device compatible

2017-03-30 Thread Icenowy Zheng
From: Icenowy Zheng Sometimes the SID device have more memory address space than the real NVMEM size (for the registers used to read/write the SID). Fetch the NVMEM size from device compatible, rather than the memory address space's length, in order to prepare for adding some

[PATCH v6 1/3] nvmem: sunxi-sid: read NVMEM size from device compatible

2017-03-30 Thread Icenowy Zheng
From: Icenowy Zheng Sometimes the SID device have more memory address space than the real NVMEM size (for the registers used to read/write the SID). Fetch the NVMEM size from device compatible, rather than the memory address space's length, in order to prepare for adding some registers-based