From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-usb@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH v1] usb: typec: mux: Switch to use fwnode_property_count_uXX()
Date: Mon, 29 Jul 2019 17:26:48 +0300 [thread overview]
Message-ID: <20190729142648.GF28600@kuha.fi.intel.com> (raw)
In-Reply-To: <20190723194726.69545-1-andriy.shevchenko@linux.intel.com>
On Tue, Jul 23, 2019 at 10:47:26PM +0300, Andy Shevchenko wrote:
> Use fwnode_property_count_uXX() directly, that makes code neater.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/usb/typec/mux.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/typec/mux.c b/drivers/usb/typec/mux.c
> index 61b7bc58dd81..57907f26f681 100644
> --- a/drivers/usb/typec/mux.c
> +++ b/drivers/usb/typec/mux.c
> @@ -215,7 +215,7 @@ static void *typec_mux_match(struct device_connection *con, int ep, void *data)
> }
>
> /* Alternate Mode muxes */
> - nval = fwnode_property_read_u16_array(con->fwnode, "svid", NULL, 0);
> + nval = fwnode_property_count_u16(con->fwnode, "svid");
> if (nval <= 0)
> return NULL;
>
> --
> 2.20.1
thanks,
--
heikki
prev parent reply other threads:[~2019-07-29 15:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-23 19:47 [PATCH v1] usb: typec: mux: Switch to use fwnode_property_count_uXX() Andy Shevchenko
2019-07-29 14:26 ` Heikki Krogerus [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=20190729142648.GF28600@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).