diff options
author | Saurabh Sengar <saurabh.truth@gmail.com> | 2015-11-16 04:13:17 -0500 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-12-04 03:45:54 -0500 |
commit | 505b9e573ce1384f1729acb3226f6d83b651dee1 (patch) | |
tree | aac41133ed8caaa929fbca35e11a585e9477120b /drivers/mfd/mc13xxx-core.c | |
parent | 35deff7eb212b661b32177b6043f674fde6314d7 (diff) |
mfd: mc13xxx-core: Use of_property_read_bool()
For checking if a property is present or not,
use of_property_read_bool instead of of_get_property()
Signed-off-by: Saurabh Sengar <saurabh.truth@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/mc13xxx-core.c')
-rw-r--r-- | drivers/mfd/mc13xxx-core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 3f9f4c874d2a..d7f54e492aa6 100644 --- a/drivers/mfd/mc13xxx-core.c +++ b/drivers/mfd/mc13xxx-core.c | |||
@@ -383,16 +383,16 @@ static int mc13xxx_probe_flags_dt(struct mc13xxx *mc13xxx) | |||
383 | if (!np) | 383 | if (!np) |
384 | return -ENODEV; | 384 | return -ENODEV; |
385 | 385 | ||
386 | if (of_get_property(np, "fsl,mc13xxx-uses-adc", NULL)) | 386 | if (of_property_read_bool(np, "fsl,mc13xxx-uses-adc")) |
387 | mc13xxx->flags |= MC13XXX_USE_ADC; | 387 | mc13xxx->flags |= MC13XXX_USE_ADC; |
388 | 388 | ||
389 | if (of_get_property(np, "fsl,mc13xxx-uses-codec", NULL)) | 389 | if (of_property_read_bool(np, "fsl,mc13xxx-uses-codec")) |
390 | mc13xxx->flags |= MC13XXX_USE_CODEC; | 390 | mc13xxx->flags |= MC13XXX_USE_CODEC; |
391 | 391 | ||
392 | if (of_get_property(np, "fsl,mc13xxx-uses-rtc", NULL)) | 392 | if (of_property_read_bool(np, "fsl,mc13xxx-uses-rtc")) |
393 | mc13xxx->flags |= MC13XXX_USE_RTC; | 393 | mc13xxx->flags |= MC13XXX_USE_RTC; |
394 | 394 | ||
395 | if (of_get_property(np, "fsl,mc13xxx-uses-touch", NULL)) | 395 | if (of_property_read_bool(np, "fsl,mc13xxx-uses-touch")) |
396 | mc13xxx->flags |= MC13XXX_USE_TOUCHSCREEN; | 396 | mc13xxx->flags |= MC13XXX_USE_TOUCHSCREEN; |
397 | 397 | ||
398 | return 0; | 398 | return 0; |