FROMLIST: eeprom: at24: add support to fetch eeprom device property "size"

Obtain the size of the EEPROM chip from DT if the "size" property is
specified for the device.

(am from https://patchwork.kernel.org/patch/9936981/)

BUG=b:64778386
TEST=Build and flash the kernel image
Dump the OV13858 NVMem content
cat /sys/bus/i2c/devices/i2c-INT3499\:00/eeprom > /tmp/ov13_eeprom
hexdump /tmp/ov13_eeprom

Change-Id: I13965b65e9e006a629a42427d379aed35bec383e
Signed-off-by: Divagar Mohandass <divagar.mohandass@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/619051
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
1 file changed