coccinelle: run ms_timeout conversion semantic patch

Substitute integral constants where call sites passed named constants
that have timeout values as arguments to parameters that expect
millisecond durations.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-04-29 12:52:42 -05:00 committed by Carles Cufí
commit 52885d0576
5 changed files with 9 additions and 8 deletions

View file

@ -297,7 +297,7 @@ static int cmd_send(const struct shell *shell, size_t argc, char **argv)
ext ? frame.ext_id : frame.std_id,
ext ? "extended" : "standard", frame.dlc);
ret = can_send(can_dev, &frame, K_FOREVER, NULL, NULL);
ret = can_send(can_dev, &frame, SYS_FOREVER_MS, NULL, NULL);
if (ret) {
shell_error(shell, "Failed to send frame [%d]", ret);
return -EIO;