]> 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)
commit594b368af739d1b2a1f56e11eb6570c98b38093e
treedb50ee79409e361bcaaaeb5efb884d49beedf94e
parente5a2517812c5832aaac64c39ca24953a5d64241f
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