linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Ribeiro <drwyrm@gmail.com>
To: Trilok Soni <soni.trilok@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	linux-input@vger.kernel.org,
	inux-kernel <linux-kernel@vger.kernel.org>,
	openezx-devel <openezx-devel@lists.openezx.org>,
	Samuel Ortiz <sameo@linux.intel.com>,
	Ilya Petrov <ilya.muromec@gmail.com>
Subject: Re: [PATCH] PCAP misc input driver (for 2.6.32)
Date: Sun, 28 Jun 2009 14:52:57 -0300	[thread overview]
Message-ID: <1246211577.20525.14.camel@brutus> (raw)
In-Reply-To: <5d5443650906280019m1e7d9343qd44875716b540e4b@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1519 bytes --]

Em Dom, 2009-06-28 às 12:49 +0530, Trilok Soni escreveu:
> > +       pcap_keys->input->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_SW);
> > +       set_bit(KEY_POWER, pcap_keys->input->keybit);
> > +       set_bit(SW_HEADPHONE_INSERT, pcap_keys->input->swbit);
> > +       set_bit(KEY_HP, pcap_keys->input->keybit);
> 
> __set_bit please.

Ok.

> > +
> > +       err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF),
> > +                       pcap_keys_handler, 0, "Power key", pcap_keys);
> > +       if (err)
> > +               goto fail_dev;
> > +
> > +       err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_HS),
> > +                       pcap_keys_handler, 0, "Headphone jack", pcap_keys);
> > +       if (err)
> > +               goto fail_pwrkey;
> > +
> > +       err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_MIC),
> > +                       pcap_keys_handler, 0, "MIC jack/button", pcap_keys);
> > +       if (err)
> > +               goto fail_jack;
> > +
> > +       err = input_register_device(pcap_keys->input);
> > +       if (err)
> > +               goto fail_mic;
> 
> Same comment as given in PCAP touchscreen driver.

Ok.

> > +static struct platform_driver pcap_keys_device_driver = {
> > +       .probe          = pcap_keys_probe,
> > +       .remove         = pcap_keys_remove,
> 
> __devexit_p ?

Ok.

Thanks for the review, I will send new versions addressing your comments
as soon as possible.

-- 
Daniel Ribeiro

[-- Attachment #2: Esta é uma parte de mensagem assinada digitalmente --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-06-28 17:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-27 17:09 [PATCH] PCAP misc input driver (for 2.6.32) Daniel Ribeiro
2009-06-28  7:19 ` Trilok Soni
2009-06-28 17:52   ` Daniel Ribeiro [this message]
2009-06-29  6:14 ` Dmitry Torokhov
2009-06-29 20:47   ` Daniel Ribeiro
2009-06-29  9:46 ` Mark Brown
2009-06-29 16:27   ` Ilya Petrov
2009-06-29 16:33     ` Mark Brown

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=1246211577.20525.14.camel@brutus \
    --to=drwyrm@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=ilya.muromec@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=openezx-devel@lists.openezx.org \
    --cc=sameo@linux.intel.com \
    --cc=soni.trilok@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).