Skip to content

Commit

Permalink
[PATCH] cs89x0: make {read,write}reg use {read,write}word
Browse files Browse the repository at this point in the history
Make readreg/writereg use readword/writeword.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Cc: dmitry pervushin <dpervushin@ru.mvista.com>
Cc: <dsaxena@plexity.net>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Lennert Buytenhek authored and Linus Torvalds committed Jan 9, 2006
1 parent 0d5affc commit 3eaa5e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/net/cs89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,17 +351,17 @@ writeword(unsigned long base_addr, int portno, int value)
}

static int
readreg(struct net_device *dev, int portno)
readreg(struct net_device *dev, int regno)
{
outw(portno, dev->base_addr + ADD_PORT);
return inw(dev->base_addr + DATA_PORT);
writeword(dev->base_addr, ADD_PORT, regno);
return readword(dev->base_addr, DATA_PORT);
}

static void
writereg(struct net_device *dev, int portno, int value)
writereg(struct net_device *dev, int regno, int value)
{
outw(portno, dev->base_addr + ADD_PORT);
outw(value, dev->base_addr + DATA_PORT);
writeword(dev->base_addr, ADD_PORT, regno);
writeword(dev->base_addr, DATA_PORT, value);
}

static int __init
Expand Down

0 comments on commit 3eaa5e7

Please sign in to comment.