From: Nicolas Ferre <nicolas.ferre@atmel.com> To: dtor@mail.ru, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, avictor.za@gmail.com Cc: linux-kernel@vger.kernel.org, Nicolas Ferre <nicolas.ferre@atmel.com> Subject: [PATCH 1/4] input: atmel_tsadcc: touchscreen rework setting capabilities Date: Wed, 18 Nov 2009 15:12:12 +0100 [thread overview] Message-ID: <693b9933de6fe9eb7e4401ca56a8f9ab6a966666.1258553002.git.nicolas.ferre@atmel.com> (raw) Tiny patch for setting capabilities using input API function. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> --- drivers/input/touchscreen/atmel_tsadcc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_tsadcc.c b/drivers/input/touchscreen/atmel_tsadcc.c index 9c7fce4..5a2af59 100644 --- a/drivers/input/touchscreen/atmel_tsadcc.c +++ b/drivers/input/touchscreen/atmel_tsadcc.c @@ -242,12 +242,12 @@ static int __devinit atmel_tsadcc_probe(struct platform_device *pdev) input_dev->phys = ts_dev->phys; input_dev->dev.parent = &pdev->dev; - input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); - input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); - + __set_bit(EV_ABS, input_dev->evbit); input_set_abs_params(input_dev, ABS_X, 0, 0x3FF, 0, 0); input_set_abs_params(input_dev, ABS_Y, 0, 0x3FF, 0, 0); + input_set_capability(input_dev, EV_KEY, BTN_TOUCH); + /* clk_enable() always returns 0, no need to check it */ clk_enable(ts_dev->clk); -- 1.5.6.5
WARNING: multiple messages have this Message-ID (diff)
From: nicolas.ferre@atmel.com (Nicolas Ferre) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/4] input: atmel_tsadcc: touchscreen rework setting capabilities Date: Wed, 18 Nov 2009 15:12:12 +0100 [thread overview] Message-ID: <693b9933de6fe9eb7e4401ca56a8f9ab6a966666.1258553002.git.nicolas.ferre@atmel.com> (raw) Tiny patch for setting capabilities using input API function. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> --- drivers/input/touchscreen/atmel_tsadcc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/input/touchscreen/atmel_tsadcc.c b/drivers/input/touchscreen/atmel_tsadcc.c index 9c7fce4..5a2af59 100644 --- a/drivers/input/touchscreen/atmel_tsadcc.c +++ b/drivers/input/touchscreen/atmel_tsadcc.c @@ -242,12 +242,12 @@ static int __devinit atmel_tsadcc_probe(struct platform_device *pdev) input_dev->phys = ts_dev->phys; input_dev->dev.parent = &pdev->dev; - input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS); - input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); - + __set_bit(EV_ABS, input_dev->evbit); input_set_abs_params(input_dev, ABS_X, 0, 0x3FF, 0, 0); input_set_abs_params(input_dev, ABS_Y, 0, 0x3FF, 0, 0); + input_set_capability(input_dev, EV_KEY, BTN_TOUCH); + /* clk_enable() always returns 0, no need to check it */ clk_enable(ts_dev->clk); -- 1.5.6.5
next reply other threads:[~2009-11-18 13:06 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-11-18 14:12 Nicolas Ferre [this message] 2009-11-18 14:12 ` [PATCH 1/4] input: atmel_tsadcc: touchscreen rework setting capabilities Nicolas Ferre 2009-11-18 14:12 ` [PATCH 2/4] input: atmel_tsadcc touchscreen use platform parameters Nicolas Ferre 2009-11-18 14:12 ` Nicolas Ferre 2009-11-18 14:12 ` [PATCH 3/4] at91/input: platform parameters for atmel_tsadcc in at91sam9rlek Nicolas Ferre 2009-11-18 14:12 ` Nicolas Ferre 2009-11-18 14:12 ` [PATCH 4/4] at91/input: touchscreen support for at91sam9g45ekes Nicolas Ferre 2009-11-18 14:12 ` Nicolas Ferre 2009-11-18 17:30 ` [PATCH 1/4] input: atmel_tsadcc: touchscreen rework setting capabilities Dmitry Torokhov 2009-11-18 17:30 ` Dmitry Torokhov 2009-11-19 10:47 ` Nicolas Ferre 2009-11-19 10:47 ` Nicolas Ferre 2009-11-19 17:04 ` Dmitry Torokhov 2009-11-19 17:04 ` Dmitry Torokhov
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=693b9933de6fe9eb7e4401ca56a8f9ab6a966666.1258553002.git.nicolas.ferre@atmel.com \ --to=nicolas.ferre@atmel.com \ --cc=avictor.za@gmail.com \ --cc=dtor@mail.ru \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.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: linkBe 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.