bus: mhi: Make mhi_state_str[] array static inline and move to common.h
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tue, 1 Mar 2022 16:03:08 +0000 (21:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 13:02:55 +0000 (14:02 +0100)
commit3a1b8e281a2693c286f7dbaa57f6291e0d032c0c
tree4dd06d63cc20a8498125acf9c25707092ffe6ed6
parent8485149c7a84bbe9d2646b1d6b465d34dbf7ee02
bus: mhi: Make mhi_state_str[] array static inline and move to common.h

mhi_state_str[] array could be used by MHI endpoint stack also. So let's
make the array as "static inline function" and move it inside the
"common.h" header so that the endpoint stack could also make use of it.

Reviewed-by: Hemant Kumar <hemantk@codeaurora.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20220301160308.107452-11-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/common.h
drivers/bus/mhi/host/boot.c
drivers/bus/mhi/host/debugfs.c
drivers/bus/mhi/host/init.c
drivers/bus/mhi/host/main.c
drivers/bus/mhi/host/pm.c