Skip to content

Commit

Permalink
gpio: Fix inverted rdc321x gpio data out registers
Browse files Browse the repository at this point in the history
rdc_gpio_set_value_impl has the gpio data registers 1 and 2 inverted, fix this.

Signed-off-by: Bernhard Loos <[email protected]>
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
ffainelli authored and Samuel Ortiz committed May 27, 2010
1 parent 8deca39 commit 75907a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/rdc321x-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 75907a1

Please sign in to comment.