mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
UPSTREAM: usb: typec: mux: Switch to use fwnode_property_count_uXX()
Use fwnode_property_count_uXX() directly, that makes code neater.
Bug: 150877929
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190723194726.69545-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I0e0799f1a4a8edba6557321525f6a221697a9141
Signed-off-by: Will McVicker <willmcvicker@google.com>
(cherry picked from commit 6ce9ba07b1)
This commit is contained in:
committed by
Will McVicker
parent
0ce7fd9f18
commit
c0bbaafc3e
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user