]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Fix tps6586x GPIO value setting
authorVincent Palatin <vpalatin@chromium.org>
Tue, 12 Apr 2011 14:55:58 +0000 (10:55 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 26 May 2011 17:45:31 +0000 (19:45 +0200)
commit43c378f81a2b0523f9f8d33d4d6c0d05f4c6a1bb
tree00e733fd5e826854f3876e38195adec8df50c9ee
parent749a58b82a7164c562aa07c5d5fc6f4a9df41046
mfd: Fix tps6586x GPIO value setting

In the current code, every time we set a TPS6586x GPIO pin,
the tps6586x_gpio_set function is resetting all other GPIO pins.
We need to update the right GPIOxOUT bit of the GPIOSET2 register instead
of overriding the full value.

Tested by setting sequentially GPIO2 and GPIO3 and verifying the
pins voltage.

Change-Id: I560edde146c5425cce37432c4ee91569eea5adcf
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps6586x.c