Skip to content

Commit b0442e2

Browse files
XenuIsWatchingnashif
authored andcommitted
drivers: i3c: shell: record getcaps in to desc from shell
Record the getcaps values in to the i3c desc from the shell command. Signed-off-by: Ryan McClelland <[email protected]>
1 parent d2b0f70 commit b0442e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i3c/i3c_shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,6 +1662,7 @@ static int cmd_i3c_ccc_getcaps(const struct shell *sh, size_t argc, char **argv)
16621662
shell_print(sh, "GETCAPS: 0x%02x; 0x%02x; 0x%02x; 0x%02x",
16631663
caps.fmt1.getcaps[0], caps.fmt1.getcaps[1], caps.fmt1.getcaps[2],
16641664
caps.fmt1.getcaps[3]);
1665+
memcpy(&desc->getcaps, &caps, sizeof(desc->getcaps));
16651666
}
16661667

16671668
return ret;

0 commit comments

Comments
 (0)