mfd: richo583: Configure pins in gpio mode if used as gpio
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 12 Oct 2011 15:49:51 +0000 (20:49 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 1 Dec 2011 05:49:28 +0000 (21:49 -0800)
commitfa36ff379b8283fce834329fd707ca70a8afe306
tree914ce8110e95eca6caf5a511f2d727790faa4bd6
parenta226e7c73a8aa41f772cedda1ac2f14c000b0065
mfd: richo583: Configure pins in gpio mode if used as gpio

Configuring the pins in gpio mode when it is used as gpio.
Configuring the correct value of bits when setting the output value.

bug 822562

Reviewed-on: http://git-master/r/58276
(cherry picked from commit b854f309151342689b82bd653738eb94c87db4a4)

Change-Id: I7474d1771d83650db9be71db1f578fd0a50ad19d
Reviewed-on: http://git-master/r/59288
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

Rebase-Id: Rf0619d6a3d24059dab15c39c5800a5fd7ee6779b
drivers/mfd/ricoh583.c