Skip to content

Commit 507e817

Browse files
XenuIsWatchingMaureenHelm
authored andcommitted
drivers: i3c: shell: fixup rstact
Both #78823 and #78807 merged at around the same time. This made it so the shell didn't compile when #78823 was stacked on top as it did not run with the test build. This fixes the compile issues. Signed-off-by: Ryan McClelland <[email protected]>
1 parent 7e21f2e commit 507e817

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/i3c/i3c_shell.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,9 +1072,9 @@ static int cmd_i3c_ccc_rstact(const struct shell *sh, size_t argc, char **argv)
10721072
action = strtol(argv[5], NULL, 16);
10731073

10741074
if (strcmp(argv[4], "get") == 0) {
1075-
ret = i3c_ccc_do_rstact_fmt3(tdev, action, &data);
1075+
ret = i3c_ccc_do_rstact_fmt3(desc, action, &data);
10761076
} else if (strcmp(argv[4], "set") == 0) {
1077-
ret = i3c_ccc_do_rstact_fmt2(tdev, action);
1077+
ret = i3c_ccc_do_rstact_fmt2(desc, action);
10781078
} else {
10791079
shell_error(sh, "I3C: invalid parameter");
10801080
return -EINVAL;
@@ -1086,7 +1086,7 @@ static int cmd_i3c_ccc_rstact(const struct shell *sh, size_t argc, char **argv)
10861086
}
10871087

10881088
if (action >= 0x80) {
1089-
shell_print("RSTACT Returned Data: 0x%02x", data);
1089+
shell_print(sh, "RSTACT Returned Data: 0x%02x", data);
10901090
}
10911091

10921092
return ret;

0 commit comments

Comments
 (0)