mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
gpio: Fix inverted rdc321x gpio data out registers
rdc_gpio_set_value_impl has the gpio data registers 1 and 2 inverted, fix this. Signed-off-by: Bernhard Loos <bernhardloos@gmail.com> Signed-off-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
8deca39e5c
commit
75907a1153
@ -73,7 +73,7 @@ static void rdc_gpio_set_value_impl(struct gpio_chip *chip,
|
||||
gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
|
||||
|
||||
pci_write_config_dword(gpch->sb_pdev,
|
||||
reg ? gpch->reg1_data_base : gpch->reg2_data_base,
|
||||
reg ? gpch->reg2_data_base : gpch->reg1_data_base,
|
||||
gpch->data_reg[reg]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user