msm: display: pp: histogram collection for mdss

MSMFB_HISTOGRAM_START, MSMFB_HISTOGRAM_STOP and MSMFB_HISTOGRAM support
Only read the histogram data when there is a new display commit
Only generate the next histogram collection when there is a display commit
Cache the histogram data in order to respond quickly

Change-Id: I4532eca3bb8daa9e03ef78770c9e47d968c7c140
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
diff --git a/include/linux/msm_mdp.h b/include/linux/msm_mdp.h
index 905854d..861084a 100644
--- a/include/linux/msm_mdp.h
+++ b/include/linux/msm_mdp.h
@@ -407,7 +407,7 @@
 
 struct mdp_histogram_data {
 	uint32_t block;
-	uint8_t bin_cnt;
+	uint32_t bin_cnt;
 	uint32_t *c0;
 	uint32_t *c1;
 	uint32_t *c2;