Merge "mhi: core: move mhi_states_transition_str out of stack"
This commit is contained in:
commit
242aa79d68
1 changed files with 17 additions and 18 deletions
|
@ -18,10 +18,7 @@
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/pm_runtime.h>
|
#include <linux/pm_runtime.h>
|
||||||
|
|
||||||
const char *state_transition_str(enum STATE_TRANSITION state)
|
static const char * const mhi_states_transition_str[STATE_TRANSITION_MAX] = {
|
||||||
{
|
|
||||||
static const char * const
|
|
||||||
mhi_states_transition_str[STATE_TRANSITION_MAX] = {
|
|
||||||
[STATE_TRANSITION_RESET] = "RESET",
|
[STATE_TRANSITION_RESET] = "RESET",
|
||||||
[STATE_TRANSITION_READY] = "READY",
|
[STATE_TRANSITION_READY] = "READY",
|
||||||
[STATE_TRANSITION_M0] = "M0",
|
[STATE_TRANSITION_M0] = "M0",
|
||||||
|
@ -38,6 +35,8 @@ const char *state_transition_str(enum STATE_TRANSITION state)
|
||||||
[STATE_TRANSITION_SYS_ERR] = "SYS_ERR",
|
[STATE_TRANSITION_SYS_ERR] = "SYS_ERR",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const char *state_transition_str(enum STATE_TRANSITION state)
|
||||||
|
{
|
||||||
return (state < STATE_TRANSITION_MAX) ?
|
return (state < STATE_TRANSITION_MAX) ?
|
||||||
mhi_states_transition_str[state] : "Invalid";
|
mhi_states_transition_str[state] : "Invalid";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue