msm: sde: Add v4l2 rotator driver to enable multi-context usecase

Current application interface of fbdev rotator driver has limited
support on multiple concurrent rotator sessions.  Using v4l2 m2m
framework will enable concurrent multi-session using standard
v4l2 interface.  This will also enable third-party clients to
use rotator service in background mode.

The driver supports same feature set as current fbdev rotator
driver, such as rotation, flip, and scale operation.

CRs-Fixed: 972831
Change-Id: I0bba76f2233c142b5a22451f824df7900ac60afa
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org>
diff --git a/drivers/media/platform/msm/sde/rotator/sde_rotator_core.h b/drivers/media/platform/msm/sde/rotator/sde_rotator_core.h
index 5052ea1..0aee4f7 100644
--- a/drivers/media/platform/msm/sde/rotator/sde_rotator_core.h
+++ b/drivers/media/platform/msm/sde/rotator/sde_rotator_core.h
@@ -59,9 +59,9 @@
 /* use client provided dma buf instead of ion fd */
 #define SDE_ROTATION_EXT_DMA_BUF	0x20000
 
-/*********************************************************************
- *configuration structures
- *********************************************************************/
+/**********************************************************************
+ * configuration structures
+ **********************************************************************/
 
 struct sde_rotation_buf_info {
 	uint32_t width;
@@ -108,37 +108,37 @@
 	/* The output buffer for the request */
 	struct sde_layer_buffer	output;
 
-	 /*
-	  * DMA pipe selection for this request by client:
-	  * 0: DMA pipe 0
-	  * 1: DMA pipe 1
-	  * or SDE_ROTATION_HW_ANY if client wants
-	  * driver to allocate any that is available
-	  *
-	  * OR
-	  *
-	  * Reserved
-	  */
+	/*
+	 * DMA pipe selection for this request by client:
+	 * 0: DMA pipe 0
+	 * 1: DMA pipe 1
+	 * or SDE_ROTATION_HW_ANY if client wants
+	 * driver to allocate any that is available
+	 *
+	 * OR
+	 *
+	 * Reserved
+	 */
 	uint32_t	pipe_idx;
 
-	 /*
-	  * Write-back block selection for this request by client:
-	  * 0: Write-back block 0
-	  * 1: Write-back block 1
-	  * or SDE_ROTATION_HW_ANY if client wants
-	  * driver to allocate any that is available
-	  *
-	  * OR
-	  *
-	  * Priority selection for this request by client:
-	  * 0: Highest
-	  * 1..n: Limited by the lowest available priority
-	  */
+	/*
+	 * Write-back block selection for this request by client:
+	 * 0: Write-back block 0
+	 * 1: Write-back block 1
+	 * or SDE_ROTATION_HW_ANY if client wants
+	 * driver to allocate any that is available
+	 *
+	 * OR
+	 *
+	 * Priority selection for this request by client:
+	 * 0: Highest
+	 * 1..n: Limited by the lowest available priority
+	 */
 	uint32_t	wb_idx;
 
-	 /*
-	  * Sequence ID of this request within the session
-	  */
+	/*
+	 * Sequence ID of this request within the session
+	 */
 	uint32_t	sequence_id;
 
 	/* Which session ID is this request scheduled on */