All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abraham Arce <abraham.arce.moreno@gmail.com>
To: Sriramakrishnan <srk@ti.com>
Cc: linux-omap@vger.kernel.org, linux-input@vger.kernel.org
Subject: Re: [PATCHv3 1/3] TCA6416 keypad : Implement keypad driver for keys interfaced to TCA6416
Date: Sun, 4 Apr 2010 13:29:08 -0500	[thread overview]
Message-ID: <s2wcb8016981004041129y8db79t8bbd941411a179ba@mail.gmail.com> (raw)
In-Reply-To: <1269357035-19754-2-git-send-email-srk@ti.com>

Sriramakrishnan,

Find minor changes proposals...

> +
> +         Say Y here if your device has keys connected to
> +         TCA6416 IO expander. Your board-specific setup logic
> +         must also provide pin-mask details(of which TCA6416 pins
> +         are used for keypad).

space in " details ( "

<snip>

> +       if (chip->use_polling)
> +               schedule_delayed_work(&chip->dwork, msecs_to_jiffies(100));
> +       else
> +               enable_irq(chip->irqnum);
> +
> +}
> +
> +

remove one blank line

> +
> +       /* initialize cached registers from their original values.
> +        * we can't share this chip with another i2c master.
> +        */

should we start our comment section as below?

/*
 * initialize...

<snip>

> +
> +       ret = tca6416_read_reg(chip, TCA6416_INPUT, &chip->reg_input);
> +       if (ret)
> +               goto fail1;
> +
> +       i2c_set_clientdata(client, chip);
> +
> +

remove one blank line

<snip>

> +
> +       if (!chip->use_polling) {
> +               if (pdata->irq_is_gpio)
> +                       chip->irqnum = gpio_to_irq(client->irq);
> +               else
> +                       chip->irqnum = client->irq;
> +
> +               ret = request_irq(chip->irqnum, tca6416_keys_isr,
> +                               IRQF_SHARED | IRQF_TRIGGER_FALLING ,
> +                               "tca6416-keypad", chip);
> +               if (ret) {
> +                       dev_dbg(&client->dev,
> +                               "Unable to claim irq %d; error %d\n",
> +                               chip->irqnum, ret);
> +                       goto fail3;
> +               }
> +               disable_irq(chip->irqnum);

why not using threaded irq?

Best Regards
Abraham
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-04-04 18:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-23 15:10 [PATCHv3 0/3] Add support for TCA6416 based Keypad driver Sriramakrishnan
2010-03-23 15:10 ` [PATCHv3 1/3] TCA6416 keypad : Implement keypad driver for keys interfaced to TCA6416 Sriramakrishnan
2010-03-23 15:10   ` [PATCHv3 2/3] AM3517: Board hookup for TCA6416 keypad driver Sriramakrishnan
2010-03-23 15:10     ` [PATCHv3 3/3] AM3517 EVM : Enable TCA6416 keypad Sriramakrishnan
2010-04-04 18:29   ` Abraham Arce [this message]
2010-04-16  5:25   ` [PATCHv3 1/3] TCA6416 keypad : Implement keypad driver for keys interfaced to TCA6416 Dmitry Torokhov
2010-04-30 14:19     ` Govindarajan, Sriramakrishnan
2010-05-04  6:46       ` Dmitry Torokhov
2010-04-01 14:15 ` [PATCHv3 0/3] Add support for TCA6416 based Keypad driver Govindarajan, Sriramakrishnan

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=s2wcb8016981004041129y8db79t8bbd941411a179ba@mail.gmail.com \
    --to=abraham.arce.moreno@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=srk@ti.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.