diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-10-23 02:31:47 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-10-24 14:25:45 +0300 |
commit | 7b47ad3322d114736e08cc244a84fe7af9b861f6 (patch) | |
tree | a65d9a9821c9b0f1858a51273c58405850fafcab /drivers/soundwire | |
parent | cf9249626f72878b6d205a4965093cba5cce98df (diff) | |
download | linux-7b47ad3322d114736e08cc244a84fe7af9b861f6.tar.xz |
soundwire: slave: fix scanf format
fix cppcheck warning:
[drivers/soundwire/slave.c:145]: (warning) %x in format string (no. 1)
requires 'unsigned int *' but the argument type is 'signed int *'.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191022233147.17268-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/slave.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soundwire/slave.c b/drivers/soundwire/slave.c index 48a63ca130d2..6473fa602f82 100644 --- a/drivers/soundwire/slave.c +++ b/drivers/soundwire/slave.c @@ -128,7 +128,8 @@ int sdw_of_find_slaves(struct sdw_bus *bus) struct device_node *node; for_each_child_of_node(bus->dev->of_node, node) { - int link_id, sdw_version, ret, len; + int link_id, ret, len; + unsigned int sdw_version; const char *compat = NULL; struct sdw_slave_id id; const __be32 *addr; |