Skip to content

Commit 7b47ad3

Browse files
plbossartvinodkoul
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent cf92496 commit 7b47ad3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/soundwire/slave.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ int sdw_of_find_slaves(struct sdw_bus *bus)
128128
struct device_node *node;
129129

130130
for_each_child_of_node(bus->dev->of_node, node) {
131-
int link_id, sdw_version, ret, len;
131+
int link_id, ret, len;
132+
unsigned int sdw_version;
132133
const char *compat = NULL;
133134
struct sdw_slave_id id;
134135
const __be32 *addr;

0 commit comments

Comments
 (0)