[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121030182625.GP11908@atomide.com>
Date: Tue, 30 Oct 2012 11:26:25 -0700
From: Tony Lindgren <tony@...mide.com>
To: Pantelis Antoniou <panto@...oniou-consulting.com>
Cc: Evgeniy Polyakov <zbr@...emap.net>, linux-kernel@...r.kernel.org,
Koen Kooi <koen@...inion.thruhere.net>,
Matt Porter <mporter@...com>, Russ Dill <Russ.Dill@...com>,
linux-omap@...r.kernel.org
Subject: Re: [PATCH] w1-gpio: Pinctrl-fy
* Pantelis Antoniou <panto@...oniou-consulting.com> [121030 11:17]:
> Enable pinctrl for w1-gpio.
>
> Signed-off-by: Pantelis Antoniou <panto@...oniou-consulting.com>
Acked-by: Tony Lindgren <tony@...mide.com>
> ---
> drivers/w1/masters/w1-gpio.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c
> index 6012c4e..aec35bd 100644
> --- a/drivers/w1/masters/w1-gpio.c
> +++ b/drivers/w1/masters/w1-gpio.c
> @@ -16,6 +16,8 @@
> #include <linux/gpio.h>
> #include <linux/of_platform.h>
> #include <linux/of_gpio.h>
> +#include <linux/pinctrl/consumer.h>
> +#include <linux/err.h>
>
> #include "../w1.h"
> #include "../w1_int.h"
> @@ -85,8 +87,13 @@ static int __init w1_gpio_probe(struct platform_device *pdev)
> {
> struct w1_bus_master *master;
> struct w1_gpio_platform_data *pdata;
> + struct pinctrl *pinctrl;
> int err;
>
> + pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
> + if (IS_ERR(pinctrl))
> + dev_warn(&pdev->dev, "unable to select pin group\n");
> +
> err = w1_gpio_probe_dt(pdev);
> if (err < 0)
> return err;
> --
> 1.7.12
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists