Merge "dev: gcdb: display: Add helper function for parsing panel_name"
diff --git a/dev/gcdb/display/gcdb_display.h b/dev/gcdb/display/gcdb_display.h
index 2fc904a..95e11d4 100755
--- a/dev/gcdb/display/gcdb_display.h
+++ b/dev/gcdb/display/gcdb_display.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -60,4 +60,17 @@
 int oem_panel_select(const char *panel_name, struct panel_struct *panelstruct,
 	struct msm_panel_info *pinfo, struct mdss_dsi_phy_ctrl *phy_db);
 
+static inline void set_panel_cmd_string(const char *panel_name,
+	char *cont_splash)
+{
+	char *ch = NULL;
+	ch = strchr((char *) panel_name, ':');
+	if (ch) {
+		*cont_splash = *(ch + 1);
+		*ch = '\0';
+	} else {
+		*cont_splash = '\0';
+	}
+}
+
 #endif /*_GCDB_DISPLAY_H_ */