summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dt3155v4l
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-05-05 10:45:16 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:36:12 -0700
commit2342df0e63f4ca9a4227ea06f951f09180497914 (patch)
tree55d0d14522f598a8cf8b018818d0111c927b0cbf /drivers/staging/dt3155v4l
parent7ec21181d22891ecebcd01075a819a4373c54362 (diff)
downloadblackbird-op-linux-2342df0e63f4ca9a4227ea06f951f09180497914.tar.gz
blackbird-op-linux-2342df0e63f4ca9a4227ea06f951f09180497914.zip
Staging: dt3155v4l: fix some sparse warnings
Mostly some __iomem markings and some static functions as well. Cc: Marin Mitov <mitov@issp.bas.bg Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/dt3155v4l')
-rw-r--r--drivers/staging/dt3155v4l/dt3155v4l.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/staging/dt3155v4l/dt3155v4l.c b/drivers/staging/dt3155v4l/dt3155v4l.c
index d596e9d49222..881c3e99bd47 100644
--- a/drivers/staging/dt3155v4l/dt3155v4l.c
+++ b/drivers/staging/dt3155v4l/dt3155v4l.c
@@ -65,7 +65,7 @@ static u8 config_init = ACQ_MODE_EVEN;
* in a byte pointed by data.
*/
static int
-read_i2c_reg(void *addr, u8 index, u8 *data)
+read_i2c_reg(void __iomem *addr, u8 index, u8 *data)
{
u32 tmp = index;
@@ -102,7 +102,7 @@ read_i2c_reg(void *addr, u8 index, u8 *data)
* and busy waits for the process to finish.
*/
static int
-write_i2c_reg(void *addr, u8 index, u8 data)
+write_i2c_reg(void __iomem *addr, u8 index, u8 data)
{
u32 tmp = index;
@@ -134,8 +134,7 @@ write_i2c_reg(void *addr, u8 index, u8 data)
* This function starts writting the specified (by index) register
* and then returns.
*/
-void
-write_i2c_reg_nowait(void *addr, u8 index, u8 data)
+static void write_i2c_reg_nowait(void __iomem *addr, u8 index, u8 data)
{
u32 tmp = index;
@@ -152,8 +151,7 @@ write_i2c_reg_nowait(void *addr, u8 index, u8 data)
*
* This function waits reading/writting to finish.
*/
-static int
-wait_i2c_reg(void *addr)
+static int wait_i2c_reg(void __iomem *addr)
{
if (ioread32(addr + IIC_CSR2) & NEW_CYCLE)
udelay(65); /* wait at least 63 usec for NEW_CYCLE to clear */
OpenPOWER on IntegriCloud