summaryrefslogtreecommitdiffstats
path: root/drivers/eeprom
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-04-12 11:49:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-04-12 12:12:33 +0200
commitf2cca54b7a9ae82012c96ecc907518957de1536e (patch)
tree7b1437ea057b0b4c233acc131063e75384a8d9d0 /drivers/eeprom
parent650228f100df7c52a80db7eb31dd3727ba5d267a (diff)
downloadbarebox-f2cca54b7a9ae82012c96ecc907518957de1536e.tar.gz
barebox-f2cca54b7a9ae82012c96ecc907518957de1536e.tar.xz
of: use of_property_read_bool where appropriate
Use of_property_read_bool where boolean properties are read. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/eeprom')
-rw-r--r--drivers/eeprom/at25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/eeprom/at25.c b/drivers/eeprom/at25.c
index 1caaebd371..9f16f964a8 100644
--- a/drivers/eeprom/at25.c
+++ b/drivers/eeprom/at25.c
@@ -290,7 +290,7 @@ static int at25_np_to_chip(struct device_d *dev,
val);
return -ENODEV;
}
- if (of_find_property(np, "read-only", NULL))
+ if (of_property_read_bool(np, "read-only"))
chip->flags |= EE_READONLY;
}
return 0;