From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751965AbdB1KHL (ORCPT ); Tue, 28 Feb 2017 05:07:11 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:24413 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750957AbdB1KHJ (ORCPT ); Tue, 28 Feb 2017 05:07:09 -0500 From: Milo Kim To: Mark Brown , Rob Herring CC: , , Milo Kim Subject: [PATCH 2/2] regulator: lm363x: Use generic DT property name for external control pins Date: Tue, 28 Feb 2017 16:50:41 +0900 Message-ID: <20170228075041.7568-2-milo.kim@ti.com> X-Mailer: git-send-email 2.11.0.windows.1 In-Reply-To: <20170228075041.7568-1-milo.kim@ti.com> References: <20170228075041.7568-1-milo.kim@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vpos and Vneg LDOs can be enabled or disabled by external GPIOs. Use general DT property 'enable-gpios' for this usage. Two enable pins are differentiable by selecting the index number. Signed-off-by: Milo Kim --- drivers/regulator/lm363x-regulator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/lm363x-regulator.c b/drivers/regulator/lm363x-regulator.c index f53e63301a20..ce5f7d9ad475 100644 --- a/drivers/regulator/lm363x-regulator.c +++ b/drivers/regulator/lm363x-regulator.c @@ -227,9 +227,9 @@ static int lm363x_regulator_of_get_enable_gpio(struct device_node *np, int id) */ switch (id) { case LM3632_LDO_POS: - return of_get_named_gpio(np, "ti,lcm-en1-gpio", 0); + return of_get_named_gpio(np, "enable-gpios", 0); case LM3632_LDO_NEG: - return of_get_named_gpio(np, "ti,lcm-en2-gpio", 0); + return of_get_named_gpio(np, "enable-gpios", 1); default: return -EINVAL; } -- 2.11.0