ip17xx: Keep all state locally
authorGabor Juhos <juhosg@openwrt.org>
Tue, 8 Jun 2010 20:18:55 +0000 (20:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 8 Jun 2010 20:18:55 +0000 (20:18 +0000)
commitc73163553e7e2efe298e4ae987c595f7f6667c78
tree946b10f3e170338cfb4e4bba4b2b26d78dce55b0
parent1746c45d516150f56a1e45532737472b99f55d6a
ip17xx: Keep all state locally

Instead of reading the hardware state every time we want to inspect it or
to modify it, maintain it in struct ip175c_state.

This simplifies the code significantly.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21722 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic-2.6/files/drivers/net/phy/ip175c.c