gpio: qpnp-pin: Fix bug when applying pull config

We are currently not applying default pin configuration for the
'pull' property, since we are erroneously reading from the
MODE_CTL register intead of the PULL_CTL register. This is a
blatant bug.

The side effect of this bug is that default register
configuration will be lost for the 'pull' property. If we
explicitly configure a pin in the Device Tree using the 'pull'
property, then the configuration will still be applied as
expected.

This patch makes it so that both the default and explicit
configuration works correctly for the 'pull' property.

Change-Id: I7585680d11b5e608f2f43e0561fca0c3dca121c7
Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
1 file changed