mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-23 22:49:28 -05:00
102 lines
4.7 KiB
Diff
102 lines
4.7 KiB
Diff
From 81947189009afcfac17d1106101260c660421265 Mon Sep 17 00:00:00 2001
|
|
From: Monika Alekhya <malekh@codeaurora.org>
|
|
Date: Tue, 11 Jun 2013 19:32:27 +0530
|
|
Subject: msm:camera: Fix signedness issue in hw_exec_cmds
|
|
|
|
In hw_exec_cmds()second argument m_cmds should be
|
|
of type unsigned interger
|
|
|
|
Change-Id: Idad2eb1a59481f3fe9f90221ff2061e8dae57013
|
|
CRs-Fixed: 493314
|
|
Signed-off-by: Monika Alekhya <malekh@codeaurora.org>
|
|
---
|
|
drivers/media/video/msm/gemini/msm_gemini_hw.c | 2 +-
|
|
drivers/media/video/msm/gemini/msm_gemini_hw.h | 2 +-
|
|
drivers/media/video/msm/jpeg_10/msm_jpeg_hw.c | 2 +-
|
|
drivers/media/video/msm/jpeg_10/msm_jpeg_hw.h | 2 +-
|
|
drivers/media/video/msm/mercury/msm_mercury_hw.c | 2 +-
|
|
drivers/media/video/msm/mercury/msm_mercury_hw.h | 2 +-
|
|
6 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/drivers/media/video/msm/gemini/msm_gemini_hw.c b/drivers/media/video/msm/gemini/msm_gemini_hw.c
|
|
index 116edcf..99b76be 100644
|
|
--- a/drivers/media/video/msm/gemini/msm_gemini_hw.c
|
|
+++ b/drivers/media/video/msm/gemini/msm_gemini_hw.c
|
|
@@ -432,7 +432,7 @@ void msm_gemini_hw_delay(struct msm_gemini_hw_cmd *hw_cmd_p, int m_us)
|
|
}
|
|
}
|
|
|
|
-int msm_gemini_hw_exec_cmds(struct msm_gemini_hw_cmd *hw_cmd_p, int m_cmds)
|
|
+int msm_gemini_hw_exec_cmds(struct msm_gemini_hw_cmd *hw_cmd_p, uint32_t m_cmds)
|
|
{
|
|
int is_copy_to_user = -1;
|
|
uint32_t data;
|
|
diff --git a/drivers/media/video/msm/gemini/msm_gemini_hw.h b/drivers/media/video/msm/gemini/msm_gemini_hw.h
|
|
index 0abd4c4..23d31ef 100644
|
|
--- a/drivers/media/video/msm/gemini/msm_gemini_hw.h
|
|
+++ b/drivers/media/video/msm/gemini/msm_gemini_hw.h
|
|
@@ -94,7 +94,7 @@ uint32_t msm_gemini_hw_read(struct msm_gemini_hw_cmd *hw_cmd_p);
|
|
void msm_gemini_hw_write(struct msm_gemini_hw_cmd *hw_cmd_p);
|
|
int msm_gemini_hw_wait(struct msm_gemini_hw_cmd *hw_cmd_p, int m_us);
|
|
void msm_gemini_hw_delay(struct msm_gemini_hw_cmd *hw_cmd_p, int m_us);
|
|
-int msm_gemini_hw_exec_cmds(struct msm_gemini_hw_cmd *hw_cmd_p, int m_cmds);
|
|
+int msm_gemini_hw_exec_cmds(struct msm_gemini_hw_cmd *hw_cmd_p, uint32_t m_cmds);
|
|
void msm_gemini_hw_region_dump(int size);
|
|
void msm_gemini_io_dump(int size);
|
|
|
|
diff --git a/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.c b/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.c
|
|
index 0bfb6a8..d92caab 100644
|
|
--- a/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.c
|
|
+++ b/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.c
|
|
@@ -295,7 +295,7 @@ void msm_jpeg_hw_delay(struct msm_jpeg_hw_cmd *hw_cmd_p, int m_us)
|
|
}
|
|
}
|
|
|
|
-int msm_jpeg_hw_exec_cmds(struct msm_jpeg_hw_cmd *hw_cmd_p, int m_cmds)
|
|
+int msm_jpeg_hw_exec_cmds(struct msm_jpeg_hw_cmd *hw_cmd_p, uint32_t m_cmds)
|
|
{
|
|
int is_copy_to_user = -1;
|
|
uint32_t data;
|
|
diff --git a/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.h b/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.h
|
|
index 73a0e27..5545115 100644
|
|
--- a/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.h
|
|
+++ b/drivers/media/video/msm/jpeg_10/msm_jpeg_hw.h
|
|
@@ -94,7 +94,7 @@ uint32_t msm_jpeg_hw_read(struct msm_jpeg_hw_cmd *hw_cmd_p);
|
|
void msm_jpeg_hw_write(struct msm_jpeg_hw_cmd *hw_cmd_p);
|
|
int msm_jpeg_hw_wait(struct msm_jpeg_hw_cmd *hw_cmd_p, int m_us);
|
|
void msm_jpeg_hw_delay(struct msm_jpeg_hw_cmd *hw_cmd_p, int m_us);
|
|
-int msm_jpeg_hw_exec_cmds(struct msm_jpeg_hw_cmd *hw_cmd_p, int m_cmds);
|
|
+int msm_jpeg_hw_exec_cmds(struct msm_jpeg_hw_cmd *hw_cmd_p, uint32_t m_cmds);
|
|
void msm_jpeg_hw_region_dump(int size);
|
|
void msm_jpeg_io_dump(int size);
|
|
|
|
diff --git a/drivers/media/video/msm/mercury/msm_mercury_hw.c b/drivers/media/video/msm/mercury/msm_mercury_hw.c
|
|
index 244c038..a940dd6 100644
|
|
--- a/drivers/media/video/msm/mercury/msm_mercury_hw.c
|
|
+++ b/drivers/media/video/msm/mercury/msm_mercury_hw.c
|
|
@@ -263,7 +263,7 @@ void msm_mercury_hw_delay(struct msm_mercury_hw_cmd *hw_cmd_p, int m_us)
|
|
}
|
|
}
|
|
|
|
-int msm_mercury_hw_exec_cmds(struct msm_mercury_hw_cmd *hw_cmd_p, int m_cmds)
|
|
+int msm_mercury_hw_exec_cmds(struct msm_mercury_hw_cmd *hw_cmd_p, uint32_t m_cmds)
|
|
{
|
|
int is_copy_to_user = -1;
|
|
uint32_t data;
|
|
diff --git a/drivers/media/video/msm/mercury/msm_mercury_hw.h b/drivers/media/video/msm/mercury/msm_mercury_hw.h
|
|
index 54fc818..f69d8ba 100644
|
|
--- a/drivers/media/video/msm/mercury/msm_mercury_hw.h
|
|
+++ b/drivers/media/video/msm/mercury/msm_mercury_hw.h
|
|
@@ -55,7 +55,7 @@ uint32_t msm_mercury_hw_read(struct msm_mercury_hw_cmd *hw_cmd_p);
|
|
void msm_mercury_hw_write(struct msm_mercury_hw_cmd *hw_cmd_p);
|
|
int msm_mercury_hw_wait(struct msm_mercury_hw_cmd *hw_cmd_p, int m_us);
|
|
void msm_mercury_hw_delay(struct msm_mercury_hw_cmd *hw_cmd_p, int m_us);
|
|
-int msm_mercury_hw_exec_cmds(struct msm_mercury_hw_cmd *hw_cmd_p, int m_cmds);
|
|
+int msm_mercury_hw_exec_cmds(struct msm_mercury_hw_cmd *hw_cmd_p, uint32_t m_cmds);
|
|
void msm_mercury_hw_region_dump(int size);
|
|
|
|
|
|
--
|
|
cgit v1.1
|
|
|