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 <ryanmcclelland@meta.com>
This commit is contained in:
parent
7e21f2e1ce
commit
507e8170fa
1 changed files with 3 additions and 3 deletions
|
|
@ -1072,9 +1072,9 @@ static int cmd_i3c_ccc_rstact(const struct shell *sh, size_t argc, char **argv)
|
||||||
action = strtol(argv[5], NULL, 16);
|
action = strtol(argv[5], NULL, 16);
|
||||||
|
|
||||||
if (strcmp(argv[4], "get") == 0) {
|
if (strcmp(argv[4], "get") == 0) {
|
||||||
ret = i3c_ccc_do_rstact_fmt3(tdev, action, &data);
|
ret = i3c_ccc_do_rstact_fmt3(desc, action, &data);
|
||||||
} else if (strcmp(argv[4], "set") == 0) {
|
} else if (strcmp(argv[4], "set") == 0) {
|
||||||
ret = i3c_ccc_do_rstact_fmt2(tdev, action);
|
ret = i3c_ccc_do_rstact_fmt2(desc, action);
|
||||||
} else {
|
} else {
|
||||||
shell_error(sh, "I3C: invalid parameter");
|
shell_error(sh, "I3C: invalid parameter");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
@ -1086,7 +1086,7 @@ static int cmd_i3c_ccc_rstact(const struct shell *sh, size_t argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action >= 0x80) {
|
if (action >= 0x80) {
|
||||||
shell_print("RSTACT Returned Data: 0x%02x", data);
|
shell_print(sh, "RSTACT Returned Data: 0x%02x", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue