Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758699Ab3CGNTw (ORCPT ); Thu, 7 Mar 2013 08:19:52 -0500 Received: from slimlogic.co.uk ([89.16.172.20]:60877 "EHLO slimlogic.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932826Ab3CGNS1 (ORCPT ); Thu, 7 Mar 2013 08:18:27 -0500 From: Ian Lartey To: linux-kernel@vger.kernel.org Cc: linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org, linux-watchdog@vger.kernel.org, swarren@wwwdotorg.org, grant.likely@secretlab.ca, broonie@opensource.wolfsonmicro.com, rob.herring@calxeda.com, rob@landley.net, mturquette@linaro.org, linus.walleij@linaro.org, cooloney@gmail.com, rpurdie@rpsys.net, sameo@linux.intel.com, wim@iguana.be, lgirdwood@gmail.com, gg@slimlogic.co.uk, j-keerthy@ti.com, ldewangan@nvidia.com, t-kristo@ti.com Subject: [PATCH v8 08/12] gpio: palmas: Enable DT support for palmas gpio. Date: Thu, 7 Mar 2013 13:17:52 +0000 Message-Id: <1362662276-20792-8-git-send-email-ian@slimlogic.co.uk> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1362662276-20792-1-git-send-email-ian@slimlogic.co.uk> References: <1362662276-20792-1-git-send-email-ian@slimlogic.co.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 44 From: J Keerthy Enable DT support for palmas gpio. Signed-off-by: J Keerthy --- drivers/gpio/gpio-palmas.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/gpio/gpio-palmas.c b/drivers/gpio/gpio-palmas.c index 636648c..04da57a 100644 --- a/drivers/gpio/gpio-palmas.c +++ b/drivers/gpio/gpio-palmas.c @@ -208,9 +208,22 @@ static int palmas_gpio_remove(struct platform_device *pdev) return gpiochip_remove(&palmas_gpio->gpio_chip); } +static struct of_device_id of_palmas_match_tbl[] = { + { .compatible = "ti,palmas-gpio", }, + { .compatible = "ti,palmas-charger-gpio", }, + { .compatible = "ti,twl6035-gpio", }, + { .compatible = "ti,twl6036-gpio", }, + { .compatible = "ti,twl6037-gpio", }, + { .compatible = "ti,tps65913-gpio", }, + { .compatible = "ti,tps65914-gpio", }, + { .compatible = "ti,tps80036-gpio", }, + { /* end */ } +}; + static struct platform_driver palmas_gpio_driver = { .driver.name = "palmas-gpio", .driver.owner = THIS_MODULE, + .driver.of_match_table = of_palmas_match_tbl, .probe = palmas_gpio_probe, .remove = palmas_gpio_remove, }; -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/