OSDN Git Service

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)
commitc23bb602af24a635d0894aa7091e184385bf8a9f
treedb50ee79409e361bcaaaeb5efb884d49beedf94e
parent2e95e51e184bd107380881502ea0f483c4500706
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