From: Chanwoo Choi <cw00.choi@samsung.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
MyungJoo Ham <myungjoo.ham@samsung.com>,
linux-kernel@vger.kernel.org,
Charles Keepax <ckeepax@opensource.cirrus.com>
Subject: Re: [PATCH v1] extcon: arizona: Switch to use device_property_count_u32()
Date: Wed, 24 Jul 2019 18:57:59 +0900 [thread overview]
Message-ID: <7f7a9bae-2ffc-8cc2-1121-c861045cfa59@samsung.com> (raw)
In-Reply-To: <20190723174021.66718-1-andriy.shevchenko@linux.intel.com>
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
prev parent reply other threads:[~2019-07-24 9:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190723174028epcas3p28ace5fe5d945c9d13a67f8658d7be49e@epcas3p2.samsung.com>
2019-07-23 17:40 ` Andy Shevchenko
2019-07-24 8:21 ` Charles Keepax
2019-07-24 9:57 ` Chanwoo Choi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f7a9bae-2ffc-8cc2-1121-c861045cfa59@samsung.com \
--to=cw00.choi@samsung.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=ckeepax@opensource.cirrus.com \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®