diff options
Diffstat (limited to 'drivers/misc/mei/init.c')
-rw-r--r-- | drivers/misc/mei/init.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 9f635be684ea..81695e4cf0a0 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -43,6 +43,18 @@ const char *mei_dev_state_str(int state) | |||
43 | #undef MEI_DEV_STATE | 43 | #undef MEI_DEV_STATE |
44 | } | 44 | } |
45 | 45 | ||
46 | const char *mei_pg_state_str(enum mei_pg_state state) | ||
47 | { | ||
48 | #define MEI_PG_STATE(state) case MEI_PG_##state: return #state | ||
49 | switch (state) { | ||
50 | MEI_PG_STATE(OFF); | ||
51 | MEI_PG_STATE(ON); | ||
52 | default: | ||
53 | return "unknown"; | ||
54 | } | ||
55 | #undef MEI_PG_STATE | ||
56 | } | ||
57 | |||
46 | 58 | ||
47 | /** | 59 | /** |
48 | * mei_cancel_work. Cancel mei background jobs | 60 | * mei_cancel_work. Cancel mei background jobs |