diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2019-07-23 22:34:00 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2019-08-12 11:11:16 +0300 |
commit | 072e2c8192cfc6ae1de1a2aca02d4512b69bdeed (patch) | |
tree | b2fe3d1c50a5822ad1af1fe6f9371b781c9b9190 /drivers/video | |
parent | 865cac14c2dac2fa5f16d1781ca2746b0d323796 (diff) | |
download | linux-072e2c8192cfc6ae1de1a2aca02d4512b69bdeed.tar.xz |
backlight: lm3630a: Switch to use fwnode_property_count_uXX()
Use use fwnode_property_count_uXX() directly, that makes code neater.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/backlight/lm3630a_bl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/backlight/lm3630a_bl.c b/drivers/video/backlight/lm3630a_bl.c index b04b35d007a2..2d8e8192e4e2 100644 --- a/drivers/video/backlight/lm3630a_bl.c +++ b/drivers/video/backlight/lm3630a_bl.c @@ -377,8 +377,7 @@ static int lm3630a_parse_led_sources(struct fwnode_handle *node, u32 sources[LM3630A_NUM_SINKS]; int ret, num_sources, i; - num_sources = fwnode_property_read_u32_array(node, "led-sources", NULL, - 0); + num_sources = fwnode_property_count_u32(node, "led-sources"); if (num_sources < 0) return default_led_sources; else if (num_sources > ARRAY_SIZE(sources)) |