提交 3eaa5e7d 编写于 作者: L Lennert Buytenhek 提交者: Linus Torvalds

[PATCH] cs89x0: make {read,write}reg use {read,write}word

Make readreg/writereg use readword/writeword.
Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
Cc: dmitry pervushin <dpervushin@ru.mvista.com>
Cc: <dsaxena@plexity.net>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 0d5affcf
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册