Commit 2342df0e authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7ec21181
...@@ -65,7 +65,7 @@ static u8 config_init = ACQ_MODE_EVEN; ...@@ -65,7 +65,7 @@ static u8 config_init = ACQ_MODE_EVEN;
* in a byte pointed by data. * in a byte pointed by data.
*/ */
static int static int
read_i2c_reg(void *addr, u8 index, u8 *data) read_i2c_reg(void __iomem *addr, u8 index, u8 *data)
{ {
u32 tmp = index; u32 tmp = index;
...@@ -102,7 +102,7 @@ read_i2c_reg(void *addr, u8 index, u8 *data) ...@@ -102,7 +102,7 @@ read_i2c_reg(void *addr, u8 index, u8 *data)
* and busy waits for the process to finish. * and busy waits for the process to finish.
*/ */
static int static int
write_i2c_reg(void *addr, u8 index, u8 data) write_i2c_reg(void __iomem *addr, u8 index, u8 data)
{ {
u32 tmp = index; u32 tmp = index;
...@@ -134,8 +134,7 @@ write_i2c_reg(void *addr, u8 index, u8 data) ...@@ -134,8 +134,7 @@ write_i2c_reg(void *addr, u8 index, u8 data)
* This function starts writting the specified (by index) register * This function starts writting the specified (by index) register
* and then returns. * and then returns.
*/ */
void static void write_i2c_reg_nowait(void __iomem *addr, u8 index, u8 data)
write_i2c_reg_nowait(void *addr, u8 index, u8 data)
{ {
u32 tmp = index; u32 tmp = index;
...@@ -152,8 +151,7 @@ write_i2c_reg_nowait(void *addr, u8 index, u8 data) ...@@ -152,8 +151,7 @@ write_i2c_reg_nowait(void *addr, u8 index, u8 data)
* *
* This function waits reading/writting to finish. * This function waits reading/writting to finish.
*/ */
static int static int wait_i2c_reg(void __iomem *addr)
wait_i2c_reg(void *addr)
{ {
if (ioread32(addr + IIC_CSR2) & NEW_CYCLE) if (ioread32(addr + IIC_CSR2) & NEW_CYCLE)
udelay(65); /* wait at least 63 usec for NEW_CYCLE to clear */ udelay(65); /* wait at least 63 usec for NEW_CYCLE to clear */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment