From f2cca54b7a9ae82012c96ecc907518957de1536e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 12 Apr 2017 11:49:52 +0200 Subject: of: use of_property_read_bool where appropriate Use of_property_read_bool where boolean properties are read. Signed-off-by: Sascha Hauer --- drivers/eeprom/at25.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/eeprom') 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; -- cgit v1.2.3