coccinelle: standardize kernel API timeout arguments

Use the int_literal_to_timeout Coccinelle script to convert literal
integer arguments for kernel API timeout parameters to the standard
timeout value representations.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-10-02 19:26:14 -05:00 committed by Kumar Gala
commit ab91eef23b
48 changed files with 160 additions and 133 deletions

View file

@ -442,7 +442,7 @@ static int ht16k33_init(struct device *dev)
/* Setup timer for polling key data */
k_timer_init(&data->timer, ht16k33_timer_callback, NULL);
k_timer_start(&data->timer, 0,
k_timer_start(&data->timer, K_NO_WAIT,
CONFIG_HT16K33_KEYSCAN_POLL_MSEC);
}