tps6591x: fix tps6591x_gpio_output() cannot drive 'low' issue
authorHaley Teng <hteng@nvidia.com>
Wed, 26 Oct 2011 13:37:44 +0000 (21:37 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Fri, 30 Dec 2011 05:15:40 +0000 (10:15 +0530)
commit3f5e8a2246a4326951397f9d82fff1cc063b41f2
treeccba613943b0d6f3c048fe4dd5ee0e09d76a8a11
parentf09f6339d02b4720df4951cc6d182eb86c2e43f4
tps6591x: fix tps6591x_gpio_output() cannot drive 'low' issue

mask the GPIO_SET bit (0x1) before decide set it or not by the input
parameter 'value'

Signed-off-by: Haley Teng <hteng@nvidia.com>
Reviewed-on: http://git-master/r/60425
Reviewed-on: http://git-master/r/66589
(cherry picked from commit d7ac2209e0a3783004fba240eea87a8e569d3745)

Change-Id: I33c69c9aaaf3c9b624fabbcbcab80e75de706d38
Reviewed-on: http://git-master/r/71962
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Haley Teng <hteng@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/mfd/tps6591x.c