From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Barry Song <21cnbao@gmail.com>
Cc: dbrownell@users.sourceforge.net,
spi-devel-general@lists.sourceforge.net,
linux-input@vger.kernel.org,
uclinux-dist-devel@blackfin.uclinux.org
Subject: Re: [PATCH 2/2] add ad714x input driver for button/scrollwhell/slider/touchpad
Date: Mon, 7 Sep 2009 23:34:48 -0700 [thread overview]
Message-ID: <20090908070811.BE709526EC9@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <1251777330-16994-3-git-send-email-21cnbao@gmail.com>
Hi,
On Tue, Sep 01, 2009 at 11:55:30AM +0800, Barry Song wrote:
> ad7142/ad7147 are Programmable Controllers for Capacitance Touch Sensors.
> The chips don't restrict the specific usage, and it can be used as button/
> slider/scrollwheel/touchpad etc. depending on the hardware connection.
> One special target board can include one or several these components.
>
> The driver is independent of special boards. It gets the components
> layout information from the platform_data, registers related devices,
> fullfills the algorithms and state machines for these components and
> report related input events to up level.
>
There were already quite a few comments, I will just add:
> + if (h_state) {
> + slider_cal_sensor_val(ad714x, idx);
> + slider_cal_highest_stage(ad714x, idx);
> + slider_cal_abs_pos(ad714x, idx);
> + slider_cal_flt_pos(ad714x, idx);
> +
> + input_report_abs(sw->input, ABS_X, sw->flt_pos);
> + input_report_abs(sw->input, ABS_PRESSURE, 1);
The driver does not seem to report true pressure so please don't fake
ABS_PRESSURE. You probably want to return BTN_TOUCH here,
Also, what about vertical sliders? I also wonder if slider
> +fail_irq:
> +fail_alloc_reg:
> + for (i = 0; i < reg_idx; i++)
> + input_unregister_device(input[i]);
> + for (i = 0; i < alloc_idx; i++)
> + input_free_device(input[i]);
No callls to input_free_device after input_unregister_device.
--
Dmitry
next prev parent reply other threads:[~2009-09-08 6:34 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 3:55 [PATCH 0/2] add ad714x captouch sensor input driver Barry Song
2009-09-01 3:55 ` [PATCH 1/2] add ad714x platform_data definition Barry Song
2009-09-01 3:55 ` [PATCH 2/2] add ad714x input driver for button/scrollwhell/slider/touchpad Barry Song
[not found] ` <1251777330-16994-3-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-09-01 19:30 ` Mike Frysinger
[not found] ` <8bd0f97a0909011230r50cb532ep46db64d65cbb49e5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-02 2:04 ` [Uclinux-dist-devel] " David Brownell
2009-09-02 2:46 ` [Uclinux-dist-devel] [PATCH 2/2] add ad714x input driver forbutton/scrollwhell/slider/touchpad Song, Barry
2009-09-02 3:09 ` Mike Frysinger
2009-09-02 3:17 ` Song, Barry
2009-09-02 9:50 ` [Uclinux-dist-devel] [PATCH 2/2] add ad714x input driverforbutton/scrollwhell/slider/touchpad Robin Getz
2009-09-02 9:48 ` Mike Frysinger
[not found] ` <0F1B54C89D5F954D8535DB252AF412FA04A5CADA-SGdA1W8gREmuVPpjEGsWsTcYPEmu4y7e@public.gmane.org>
2009-09-02 4:31 ` [Uclinux-dist-devel] [PATCH 2/2] add ad714x input driver forbutton/scrollwhell/slider/touchpad David Brownell
2009-09-02 7:51 ` Barry Song
2009-09-02 8:37 ` Song, Barry
2009-09-02 8:41 ` David Brownell
2009-09-02 1:51 ` [PATCH 2/2] add ad714x input driver for button/scrollwhell/slider/touchpad David Brownell
2009-09-02 6:26 ` [Uclinux-dist-devel] [PATCH 2/2] add ad714x input driver forbutton/scrollwhell/slider/touchpad Song, Barry
2009-09-08 6:34 ` Dmitry Torokhov [this message]
2009-09-08 6:48 ` [Uclinux-dist-devel] [PATCH 2/2] add ad714x input driverfor button/scrollwhell/slider/touchpad Song, Barry
2009-09-01 18:41 ` [Uclinux-dist-devel] [PATCH 1/2] add ad714x platform_data definition Mike Frysinger
2009-09-02 2:09 ` [Uclinux-dist-devel] [PATCH 1/2] add ad714x platform_datadefinition Song, Barry
[not found] ` <1251777330-16994-2-git-send-email-21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-09-02 1:57 ` [PATCH 1/2] add ad714x platform_data definition David Brownell
2009-09-02 4:47 ` [Uclinux-dist-devel] [PATCH 1/2] add ad714x platform_datadefinition Song, Barry
[not found] ` <0F1B54C89D5F954D8535DB252AF412FA04A96A41-SGdA1W8gREmuVPpjEGsWsTcYPEmu4y7e@public.gmane.org>
2009-09-02 5:14 ` David Brownell
2009-09-02 5:24 ` [Uclinux-dist-devel] " Song, Barry
2009-09-02 12:16 ` [spi-devel-general] [PATCH 1/2] add ad714x platform_data definition Bill Gatliff
2009-09-01 18:46 ` [Uclinux-dist-devel] [PATCH 0/2] add ad714x captouch sensor input driver Mike Frysinger
[not found] ` <8bd0f97a0909011146t210cbacbx6b0fa323242ac3d3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-02 1:52 ` David Brownell
2009-09-02 2:08 ` [Uclinux-dist-devel] [PATCH 0/2] add ad714x captouch sensorinput driver Song, Barry
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=20090908070811.BE709526EC9@mailhub.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=21cnbao@gmail.com \
--cc=dbrownell@users.sourceforge.net \
--cc=linux-input@vger.kernel.org \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=uclinux-dist-devel@blackfin.uclinux.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;
as well as URLs for NNTP newsgroup(s).