backlight: lm3630a: Switch to use fwnode_property_count_uXX()
Subsystems (2)
PATCH 1/1 backlight: lm3630a: Switch to use fwnode_property_count_uXX()
Use use fwnode_property_count_uXX() directly, that makes code neater.
--- drivers/video/backlight/lm3630a_bl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/video/backlight/lm3630a_bl.c +1 -2
@@ -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))
Signature · 6 lines
2.20.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 3 lines · Andy Shevchenko
Use use
fwnode_property_count_uXX()directly, that makes code neater.Signed-off-by Andy Shevchenko <[email protected]>
Quoted 21 lines
--- drivers/video/backlight/lm3630a_bl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/video/backlight/lm3630a_bl.c +1
-2@@ -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))Signature · 1 line
2.20.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Lee Jones
AppliedQuoted 6 lines · Andy Shevchenko
Use use
fwnode_property_count_uXX()directly, that makes code neater.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/video/backlight/lm3630a_bl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.
Signature · 8 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Lee Jones
Quoted 6 lines · Andy Shevchenko
Use use
fwnode_property_count_uXX()directly, that makes code neater.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/video/backlight/lm3630a_bl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)Applied, thanks.
Thanks.
However, I haven't still noticed a trace of it in Linux next.
Signature · 8 lines
With Best Regards, Andy Shevchenko _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Andy Shevchenko
Quoted 9 lines · Lee Jones
Quoted 6 lines · Andy Shevchenko
Use use
fwnode_property_count_uXX()directly, that makes code neater.Signed-off-by Andy Shevchenko <[email protected]>--- drivers/video/backlight/lm3630a_bl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Quoted 4 lines
Quoted 1 line
Applied, thanks.
Thanks.
However, I haven't still noticed a trace of it in Linux next.
Just did a big push. It should be in there by tomorrow.
Signature · 8 lines
Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel