Skip to content

Commit

Permalink
Staging: dt3155v4l: fix some sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent 7ec2118 commit 2342df0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/staging/dt3155v4l/dt3155v4l.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand All @@ -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 */
Expand Down

0 comments on commit 2342df0

Please sign in to comment.