kernel: Change k_poll_signal api
k_poll_signal was being used by both, struct and function. Besides this being extremely error prone it is also a MISRA-C violation. Changing the function to contain a verb, since it performs an action and the struct will be a noun. This pattern must be formalized and followed and across the project. MISRA-C rules 5.7 and 5.9 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
dfbe03249d
commit
aecd4ecb8d
13 changed files with 32 additions and 32 deletions
|
@ -114,7 +114,7 @@ static void put(const struct log_backend *const backend, struct log_msg *msg)
|
|||
|
||||
if (IS_ENABLED(CONFIG_MULTITHREADING)) {
|
||||
signal = &shell->ctx->signals[SHELL_SIGNAL_LOG_MSG];
|
||||
k_poll_signal(signal, 0);
|
||||
k_poll_signal_raise(signal, 0);
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue