Loading drivers/video/msm/mdss/mdss_mdp_debug.h +3 −2 Original line number Diff line number Diff line Loading @@ -28,10 +28,11 @@ static inline const char *mdss_mdp_pipetype2str(u32 ptype) PIPE_TYPE(VIG), PIPE_TYPE(RGB), PIPE_TYPE(DMA), PIPE_TYPE(CURSOR), #undef PIPE_TYPE }; if (ptype >= ARRAY_SIZE(strings)) if (ptype >= ARRAY_SIZE(strings) || !strings[ptype]) return "UNKOWN"; return strings[ptype]; Loading Loading @@ -62,7 +63,7 @@ static inline const char *mdss_mdp_format2str(u32 format) #undef FORMAT_NAME }; if (format >= ARRAY_SIZE(strings)) if (format >= ARRAY_SIZE(strings) || !strings[format]) return "UNKOWN"; return strings[format]; Loading drivers/video/msm/mdss/mdss_panel.h +2 −1 Original line number Diff line number Diff line Loading @@ -53,11 +53,12 @@ static inline const char *mdss_panel2str(u32 panel) PANEL_NAME(MIPI_CMD), PANEL_NAME(EDP), PANEL_NAME(HDMI), PANEL_NAME(DTV), PANEL_NAME(WRITEBACK), #undef PANEL_NAME }; if (panel >= ARRAY_SIZE(names)) if (panel >= ARRAY_SIZE(names) || !names[panel]) return "UNKNOWN"; return names[panel]; Loading Loading
drivers/video/msm/mdss/mdss_mdp_debug.h +3 −2 Original line number Diff line number Diff line Loading @@ -28,10 +28,11 @@ static inline const char *mdss_mdp_pipetype2str(u32 ptype) PIPE_TYPE(VIG), PIPE_TYPE(RGB), PIPE_TYPE(DMA), PIPE_TYPE(CURSOR), #undef PIPE_TYPE }; if (ptype >= ARRAY_SIZE(strings)) if (ptype >= ARRAY_SIZE(strings) || !strings[ptype]) return "UNKOWN"; return strings[ptype]; Loading Loading @@ -62,7 +63,7 @@ static inline const char *mdss_mdp_format2str(u32 format) #undef FORMAT_NAME }; if (format >= ARRAY_SIZE(strings)) if (format >= ARRAY_SIZE(strings) || !strings[format]) return "UNKOWN"; return strings[format]; Loading
drivers/video/msm/mdss/mdss_panel.h +2 −1 Original line number Diff line number Diff line Loading @@ -53,11 +53,12 @@ static inline const char *mdss_panel2str(u32 panel) PANEL_NAME(MIPI_CMD), PANEL_NAME(EDP), PANEL_NAME(HDMI), PANEL_NAME(DTV), PANEL_NAME(WRITEBACK), #undef PANEL_NAME }; if (panel >= ARRAY_SIZE(names)) if (panel >= ARRAY_SIZE(names) || !names[panel]) return "UNKNOWN"; return names[panel]; Loading