nvmem: sunxi-sid: read NVMEM size from device compatible
commit4a72cda530f87ee0d96c4b79b9e1a865f7761659
authorIcenowy Zheng <icenowy@aosc.xyz>
Fri, 31 Mar 2017 12:44:47 +0000 (31 13:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 15:51:48 +0000 (8 17:51 +0200)
tree16a17d419d24cabd19e049651ca68458dce68ada
parent5253193d5479006b14dbe475740d031ce3e01570
nvmem: sunxi-sid: read NVMEM size from device compatible

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 read support.

Signed-off-by: Icenowy Zheng <icenowy@aosc.xyz>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/sunxi_sid.c