]> git.baikalelectronics.ru Git - kernel.git/commit
MFD: ucb1x00-core: fix gpiolib direction_output handling
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jan 2012 18:21:50 +0000 (18:21 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jan 2012 18:34:46 +0000 (18:34 +0000)
commit739f4b1614e4882e1dcd8730e0dd7e483e8c4c03
treedb50ee79409e361bcaaaeb5efb884d49beedf94e
parent2af1034b23fe73eb1ed50711287291bb8546b1cf
MFD: ucb1x00-core: fix gpiolib direction_output handling

gpiolib drivers should first set the output data before setting the
direction to avoid putting glitches on an output signal.  As an
additional bonus, we tweak the code to avoid unnecessary register
writes to the output and direction registers if they have no need
to be updated.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mfd/ucb1x00-core.c