* [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() @ 2019-07-23 17:40 ` Andy Shevchenko 2019-07-24 8:21 ` Charles Keepax 2019-07-24 9:57 ` Chanwoo Choi 0 siblings, 2 replies; 3+ messages in thread From: Andy Shevchenko @ 2019-07-23 17:40 UTC (permalink / raw) To: MyungJoo Ham, Chanwoo Choi, linux-kernel, Charles Keepax; +Cc: Andy Shevchenko Use use device_property_count_u32() directly, that makes code neater. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/extcon/extcon-arizona.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 7e9f4c9ee87d..e970134c95fa 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -1253,7 +1253,7 @@ static int arizona_extcon_get_micd_configs(struct device *dev, int i, j; u32 *vals; - nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0); + nconfs = device_property_count_u32(arizona->dev, prop); if (nconfs <= 0) return 0; -- 2.20.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() 2019-07-23 17:40 ` [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() Andy Shevchenko @ 2019-07-24 8:21 ` Charles Keepax 2019-07-24 9:57 ` Chanwoo Choi 1 sibling, 0 replies; 3+ messages in thread From: Charles Keepax @ 2019-07-24 8:21 UTC (permalink / raw) To: Andy Shevchenko; +Cc: MyungJoo Ham, Chanwoo Choi, linux-kernel On Tue, Jul 23, 2019 at 08:40:21PM +0300, Andy Shevchenko wrote: > Use use device_property_count_u32() directly, that makes code neater. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Thanks, Charles ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() 2019-07-23 17:40 ` [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() Andy Shevchenko 2019-07-24 8:21 ` Charles Keepax @ 2019-07-24 9:57 ` Chanwoo Choi 1 sibling, 0 replies; 3+ messages in thread From: Chanwoo Choi @ 2019-07-24 9:57 UTC (permalink / raw) To: Andy Shevchenko, MyungJoo Ham, linux-kernel, Charles Keepax On 19. 7. 24. 오전 2:40, Andy Shevchenko wrote: > Use use device_property_count_u32() directly, that makes code neater. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > drivers/extcon/extcon-arizona.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c > index 7e9f4c9ee87d..e970134c95fa 100644 > --- a/drivers/extcon/extcon-arizona.c > +++ b/drivers/extcon/extcon-arizona.c > @@ -1253,7 +1253,7 @@ static int arizona_extcon_get_micd_configs(struct device *dev, > int i, j; > u32 *vals; > > - nconfs = device_property_read_u32_array(arizona->dev, prop, NULL, 0); > + nconfs = device_property_count_u32(arizona->dev, prop); > if (nconfs <= 0) > return 0; > > Applied it. Thanks. -- Best Regards, Chanwoo Choi Samsung Electronics ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-07-24 9:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20190723174028epcas3p28ace5fe5d945c9d13a67f8658d7be49e@epcas3p2.samsung.com>
2019-07-23 17:40 ` [PATCH v1] extcon: arizona: Switch to use device_property_count_u32() Andy Shevchenko
2019-07-24 8:21 ` Charles Keepax
2019-07-24 9:57 ` Chanwoo Choi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
Powered by JetHome