Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325476
b: refs/heads/master
c: 5743aaa
h: refs/heads/master
v: v3
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent 1c1c02e commit befcae2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f5cc359158772304a92ee9c5682ca83416d2ba8
refs/heads/master: 5743aaac2938eb841e14879b0f73afb7fca6f0ad
15 changes: 9 additions & 6 deletions trunk/drivers/staging/comedi/drivers/8253.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@ static inline int i8254_load(unsigned long base_address, unsigned int regshift,
return 0;
}

static inline int i8254_mm_load(void *base_address, unsigned int regshift,
unsigned int counter_number, unsigned int count,
static inline int i8254_mm_load(void __iomem *base_address,
unsigned int regshift,
unsigned int counter_number,
unsigned int count,
unsigned int mode)
{
unsigned int byte;
Expand Down Expand Up @@ -311,7 +313,8 @@ static inline int i8254_read(unsigned long base_address, unsigned int regshift,
return ret;
}

static inline int i8254_mm_read(void *base_address, unsigned int regshift,
static inline int i8254_mm_read(void __iomem *base_address,
unsigned int regshift,
unsigned int counter_number)
{
unsigned int byte;
Expand Down Expand Up @@ -348,7 +351,7 @@ static inline void i8254_write(unsigned long base_address,
outb(byte, base_address + (counter_number << regshift));
}

static inline void i8254_mm_write(void *base_address,
static inline void i8254_mm_write(void __iomem *base_address,
unsigned int regshift,
unsigned int counter_number,
unsigned int count)
Expand Down Expand Up @@ -390,7 +393,7 @@ static inline int i8254_set_mode(unsigned long base_address,
return 0;
}

static inline int i8254_mm_set_mode(void *base_address,
static inline int i8254_mm_set_mode(void __iomem *base_address,
unsigned int regshift,
unsigned int counter_number,
unsigned int mode)
Expand Down Expand Up @@ -419,7 +422,7 @@ static inline int i8254_status(unsigned long base_address,
return inb(base_address + (counter_number << regshift));
}

static inline int i8254_mm_status(void *base_address,
static inline int i8254_mm_status(void __iomem *base_address,
unsigned int regshift,
unsigned int counter_number)
{
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/staging/comedi/drivers/ni_labpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,12 +409,12 @@ static inline void labpc_outb(unsigned int byte, unsigned long address)

static inline unsigned int labpc_readb(unsigned long address)
{
return readb((void *)address);
return readb((void __iomem *)address);
}

static inline void labpc_writeb(unsigned int byte, unsigned long address)
{
writeb(byte, (void *)address);
writeb(byte, (void __iomem *)address);
}

static const struct labpc_board_struct labpc_boards[] = {
Expand Down Expand Up @@ -494,8 +494,8 @@ static inline int labpc_counter_load(struct comedi_device *dev,
unsigned int count, unsigned int mode)
{
if (thisboard->memory_mapped_io)
return i8254_mm_load((void *)base_address, 0, counter_number,
count, mode);
return i8254_mm_load((void __iomem *)base_address, 0,
counter_number, count, mode);
else
return i8254_load(base_address, 0, counter_number, count, mode);
}
Expand Down Expand Up @@ -1896,10 +1896,10 @@ static int labpc_dio_mem_callback(int dir, int port, int data,
unsigned long iobase)
{
if (dir) {
writeb(data, (void *)(iobase + port));
writeb(data, (void __iomem *)(iobase + port));
return 0;
} else {
return readb((void *)(iobase + port));
return readb((void __iomem *)(iobase + port));
}
}

Expand Down

0 comments on commit befcae2

Please sign in to comment.