* [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX()
@ 2019-07-23 19:34 Andy Shevchenko
2019-07-24 10:49 ` Daniel Thompson
2019-08-12 8:04 ` Lee Jones
0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2019-07-23 19:34 UTC (permalink / raw)
To: Lee Jones, Daniel Thompson, Jingoo Han, dri-devel; +Cc: Andy Shevchenko
Use use fwnode_property_count_uXX() directly, that makes code neater.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/video/backlight/lm3630a_bl.c | 3 +--
1 file changed, 1 insertion(+), 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))
--
2.20.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX()
2019-07-23 19:34 [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX() Andy Shevchenko
@ 2019-07-24 10:49 ` Daniel Thompson
2019-08-12 8:04 ` Lee Jones
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Thompson @ 2019-07-24 10:49 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Jingoo Han, Lee Jones, dri-devel
On Tue, Jul 23, 2019 at 10:34:00PM +0300, Andy Shevchenko wrote:
> 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>
> ---
> drivers/video/backlight/lm3630a_bl.c | 3 +--
> 1 file changed, 1 insertion(+), 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))
> --
> 2.20.1
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX()
2019-07-23 19:34 [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX() Andy Shevchenko
2019-07-24 10:49 ` Daniel Thompson
@ 2019-08-12 8:04 ` Lee Jones
2019-09-02 13:22 ` Andy Shevchenko
1 sibling, 1 reply; 5+ messages in thread
From: Lee Jones @ 2019-08-12 8:04 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Jingoo Han, Daniel Thompson, dri-devel
On Tue, 23 Jul 2019, Andy Shevchenko wrote:
> Use use fwnode_property_count_uXX() directly, that makes code neater.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/video/backlight/lm3630a_bl.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX()
2019-08-12 8:04 ` Lee Jones
@ 2019-09-02 13:22 ` Andy Shevchenko
2019-09-02 14:56 ` Lee Jones
0 siblings, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2019-09-02 13:22 UTC (permalink / raw)
To: Lee Jones; +Cc: Jingoo Han, Daniel Thompson, dri-devel
On Mon, Aug 12, 2019 at 09:04:44AM +0100, Lee Jones wrote:
> On Tue, 23 Jul 2019, Andy Shevchenko wrote:
>
> > Use use fwnode_property_count_uXX() directly, that makes code neater.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > ---
> > 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.
--
With Best Regards,
Andy Shevchenko
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX()
2019-09-02 13:22 ` Andy Shevchenko
@ 2019-09-02 14:56 ` Lee Jones
0 siblings, 0 replies; 5+ messages in thread
From: Lee Jones @ 2019-09-02 14:56 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Jingoo Han, Daniel Thompson, dri-devel
On Mon, 02 Sep 2019, Andy Shevchenko wrote:
> On Mon, Aug 12, 2019 at 09:04:44AM +0100, Lee Jones wrote:
> > On Tue, 23 Jul 2019, Andy Shevchenko wrote:
> >
> > > Use use fwnode_property_count_uXX() directly, that makes code neater.
> > >
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > ---
> > > 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.
Just did a big push. It should be in there by tomorrow.
--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-09-02 14:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-23 19:34 [PATCH v1] backlight: lm3630a: Switch to use fwnode_property_count_uXX() Andy Shevchenko
2019-07-24 10:49 ` Daniel Thompson
2019-08-12 8:04 ` Lee Jones
2019-09-02 13:22 ` Andy Shevchenko
2019-09-02 14:56 ` Lee Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.