mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[cns3xxx]: clean up PCI bus topology
This makes the PCI bus topology more standard for devices behind a bridge Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35078 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d54e68a196
commit
0a3d441da8
@ -59,9 +59,9 @@ __set_direction(struct cns3xxx_gpio_chip *cchip, unsigned pin, int input)
|
||||
|
||||
reg = __raw_readl(cchip->base + GPIO_DIR);
|
||||
if (input)
|
||||
reg |= 1 << pin;
|
||||
reg &= ~(1 << pin);
|
||||
else
|
||||
reg &= !(1 << pin);
|
||||
reg |= (1 << pin);
|
||||
__raw_writel(reg, cchip->base + GPIO_DIR);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user