From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: johnpol@2ka.mipt.ru, sameo@linux.intel.com, a.zummo@towertech.it,
lrg@slimlogic.co.uk, broonie@opensource.wolfsonmicro.com,
rpurdie@rpsys.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] input: set the long press detection in 88pm860x onkey
Date: Sat, 12 Mar 2011 22:45:07 -0800 [thread overview]
Message-ID: <20110313064507.GH31566@core.coreip.homeip.net> (raw)
In-Reply-To: <1299512600-29047-10-git-send-email-haojian.zhuang@marvell.com>
On Mon, Mar 07, 2011 at 11:43:18PM +0800, Haojian Zhuang wrote:
> Move the long-press detection from onkey handler to probe function. Avoid
> unnecessary I2C operation in onkey handler.
>
> Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
> ---
> drivers/input/misc/88pm860x_onkey.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/misc/88pm860x_onkey.c b/drivers/input/misc/88pm860x_onkey.c
> index 3dca3c1..1abc77e 100644
> --- a/drivers/input/misc/88pm860x_onkey.c
> +++ b/drivers/input/misc/88pm860x_onkey.c
> @@ -50,9 +50,6 @@ static irqreturn_t pm860x_onkey_handler(int irq, void *data)
> ret &= ONKEY_STATUS;
> input_report_key(info->idev, KEY_POWER, ret);
> input_sync(info->idev);
> -
> - /* Enable 8-second long onkey detection */
> - pm860x_set_bits(info->i2c, PM8607_WAKEUP, 3, LONG_ONKEY_EN);
> return IRQ_HANDLED;
> }
>
> @@ -105,6 +102,9 @@ static int __devinit pm860x_onkey_probe(struct platform_device *pdev)
> }
>
> platform_set_drvdata(pdev, info);
> +
> + /* Enable 8-second long onkey detection */
> + pm860x_set_bits(info->i2c, PM8607_WAKEUP, 3, LONG_ONKEY_EN);
> return 0;
>
> out_irq:
> --
> 1.5.6.5
>
--
Dmitry
next prev parent reply other threads:[~2011-03-13 6:45 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-07 15:43 [PATCH] mfd: adopt mfd_data in 88pm860x backlight Haojian Zhuang
2011-03-07 15:43 ` [PATCH] mfd: adopt mfd_data in 88pm860x led Haojian Zhuang
2011-03-07 15:43 ` [PATCH] mfd: adopt mfd_data in 88pm860x regulator Haojian Zhuang
2011-03-07 15:43 ` [PATCH] mfd: adopt mfd_data in 88pm860x Haojian Zhuang
2011-03-07 15:43 ` [PATCH] mfd: add workqueue thread into 88pm860x Haojian Zhuang
2011-03-07 15:43 ` [PATCH] input: touchscreen: use polling mode in 88pm860x Haojian Zhuang
2011-03-07 15:43 ` [PATCH] input: touchscreen: move initialization " Haojian Zhuang
2011-03-07 15:43 ` [PATCH] mfd: append additional read write on 88pm860x Haojian Zhuang
2011-03-07 15:43 ` [PATCH] rtc: add 88pm860x rtc Haojian Zhuang
2011-03-07 15:43 ` [PATCH] input: set the long press detection in 88pm860x onkey Haojian Zhuang
2011-03-07 15:43 ` [PATCH] w1: add DS278x slave driver Haojian Zhuang
2011-03-07 15:43 ` [PATCH] mfd: pxa-w1: MFD driver for PXA 1wire control + DS1WM chip Haojian Zhuang
2011-03-14 11:28 ` Samuel Ortiz
2011-03-14 12:34 ` Haojian Zhuang
2011-03-14 19:55 ` Jean-Francois Dagenais
2011-03-13 6:45 ` Dmitry Torokhov [this message]
2011-03-14 10:51 ` [PATCH] rtc: add 88pm860x rtc Samuel Ortiz
2011-03-14 13:09 ` Haojian Zhuang
2011-03-14 11:25 ` [PATCH] mfd: append additional read write on 88pm860x Samuel Ortiz
2011-03-13 6:44 ` [PATCH] input: touchscreen: use polling mode in 88pm860x Dmitry Torokhov
2011-03-14 12:41 ` Haojian Zhuang
2011-03-15 5:02 ` Dmitry Torokhov
2011-03-13 6:38 ` [PATCH] mfd: add workqueue thread into 88pm860x Dmitry Torokhov
2011-03-14 11:24 ` [PATCH] mfd: adopt mfd_data in 88pm860x Samuel Ortiz
2011-03-08 23:24 ` [PATCH] mfd: adopt mfd_data in 88pm860x regulator Mark Brown
2011-03-14 11:23 ` Samuel Ortiz
2011-03-14 11:23 ` [PATCH] mfd: adopt mfd_data in 88pm860x led Samuel Ortiz
2011-03-14 10:56 ` [PATCH] mfd: adopt mfd_data in 88pm860x backlight Samuel Ortiz
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=20110313064507.GH31566@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=a.zummo@towertech.it \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=haojian.zhuang@marvell.com \
--cc=johnpol@2ka.mipt.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=lrg@slimlogic.co.uk \
--cc=rpurdie@rpsys.net \
--cc=sameo@linux.intel.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
all inboxes | Powered by JetHome®