From: coelho@ti.com (Luciano Coelho)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] OMAP: omap4-panda: add WiLink shared transport power functions
Date: Wed, 16 Jan 2013 23:31:02 +0200 [thread overview]
Message-ID: <1358371862.6252.11.camel@cumari.coelho.fi> (raw)
In-Reply-To: <CAOMZO5DtKT9wFvJz+nvJZRgR5aNf1xv9O7FOo4YocOoSsujQ=g@mail.gmail.com>
On Wed, 2013-01-16 at 19:10 -0200, Fabio Estevam wrote:
> On Wed, Jan 16, 2013 at 6:34 PM, Luciano Coelho <coelho@ti.com> wrote:
>
> > +static int wilink_st_init(void)
> > +{
> > + int status;
> > +
> > + status = gpio_request(GPIO_BT_EN, "kim");
> > + if (status) {
> > + pr_err("%s: failed to request gpio %d\n", __func__,
> > + GPIO_BT_EN);
> > + return status;
> > + }
> > +
> > + status = gpio_direction_output(GPIO_BT_EN, 0);
> > + if (status)
> > + pr_err("%s: unable to configure gpio %d", __func__,
> > + GPIO_BT_EN);
> > +
>
> You could use gpio_request_one() instead.
Good point. I'll send v2 using this instead:
gpio_request_one(GPIO_BT_EN, GPIOF_OUT_INIT_LOW, "kim")
--
Luca.
prev parent reply other threads:[~2013-01-16 21:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-16 20:34 [PATCH] OMAP: omap4-panda: add WiLink shared transport power functions Luciano Coelho
2013-01-16 21:10 ` Fabio Estevam
2013-01-16 21:31 ` Luciano Coelho [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358371862.6252.11.camel@cumari.coelho.fi \
--to=coelho@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox