All other uses of the nshutdown gpio use macros GPIO_LOW and
GPIO_HIGH to allow changing the pin polarity.

Do this in gpio_direction_output as well.

Signed-off-by: Eric Nelson <eric.nel...@boundarydevices.com>
---
 drivers/misc/ti-st/st_kim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c
index 18e7a03..aaa17b0 100644
--- a/drivers/misc/ti-st/st_kim.c
+++ b/drivers/misc/ti-st/st_kim.c
@@ -817,7 +817,7 @@ static int kim_probe(struct platform_device *pdev)
        }
 
        /* Configure nShutdown GPIO as output=0 */
-       err = gpio_direction_output(kim_gdata->nshutdown, 0);
+       err = gpio_direction_output(kim_gdata->nshutdown, GPIO_LOW);
        if (unlikely(err)) {
                pr_err(" unable to configure gpio %d", kim_gdata->nshutdown);
                return err;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to