|
@@ -570,6 +570,10 @@ static void at24_get_pdata(struct device *dev, struct at24_platform_data *chip)
|
|
|
if (device_property_present(dev, "read-only"))
|
|
|
chip->flags |= AT24_FLAG_READONLY;
|
|
|
|
|
|
+ err = device_property_read_u32(dev, "size", &val);
|
|
|
+ if (!err)
|
|
|
+ chip->byte_len = val;
|
|
|
+
|
|
|
err = device_property_read_u32(dev, "pagesize", &val);
|
|
|
if (!err) {
|
|
|
chip->page_size = val;
|