From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Justin Waters <justin.waters@timesys.com>
Cc: linux-input@vger.kernel.org,
linux-arm-kernel@lists.arm.linux.org.uk, linux@maxim.org.za
Subject: Re: [PATCH 1/2] atmel_tsadcc: Device driver for AT91SAM9RL Touchscreen
Date: Fri, 25 Apr 2008 16:34:48 -0400 [thread overview]
Message-ID: <20080425162535.ZZRA012@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <1209149798-20418-2-git-send-email-justin.waters@timesys.com>
Hi Justin,
On Fri, Apr 25, 2008 at 02:56:37PM -0400, Justin Waters wrote:
> The atmel tsadcc is a touchscreen/adc controller found on the AT91SAM9RL SoC.
> This driver provides basic support for this controller for use as a
> touchscreen. Some future improvements include suspend/resume capabilities and
> debugfs support.
>
> Signed-off-by: Justin Waters <justin.waters@timesys.com>
Thank you for the patch. Some comments:
> diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile
> index 35d4097..3302e27 100644
> --- a/drivers/input/touchscreen/Makefile
> +++ b/drivers/input/touchscreen/Makefile
> @@ -18,4 +18,5 @@ obj-$(CONFIG_TOUCHSCREEN_USB_COMPOSITE) += usbtouchscreen.o
> obj-$(CONFIG_TOUCHSCREEN_PENMOUNT) += penmount.o
> obj-$(CONFIG_TOUCHSCREEN_TOUCHRIGHT) += touchright.o
> obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN) += touchwin.o
> +obj-$(CONFIG_TOUCHSCREEN_ATMEL_TSADCC) += atmel_tsadcc.o
If it was sorted alphabetically it would help me.
> +
> + /* Pen remains down */
> + atmel_tsadcc_getevent(ts);
> +
> + input_report_abs(ts->input, ABS_X, ts->event.x);
> + input_report_abs(ts->input, ABS_Y, ts->event.y);
> + input_report_abs(ts->input, ABS_PRESSURE, 7500);
> +
The device does not really support pressure reading, please don't try
to provide fake reports. Signal touch with BTN_TOUCH.
> +static int __devexit atmel_tsadcc_remove(struct platform_device *pdev)
> +{
> + struct atmel_tsadcc *ts = dev_get_drvdata(&pdev->dev);
> +
> + input_unregister_device(ts->input);
> +
> + free_irq(ts->irq, ts);
You should free IRQ first, otherwise IRQ may fire just was device is
unregistered and bad things may happed.
Also please run checkpatch on the driver since there are some
formatting and whitespace issues (note that I dont particularly care
about 80 column limit as long as code is readable).
Thank you.
--
Dmitry
next prev parent reply other threads:[~2008-04-25 20:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-25 18:56 [PATCH 0/2] Atmel AT91SAM9RL Touchscreen Driver Justin Waters
2008-04-25 18:56 ` [PATCH 1/2] atmel_tsadcc: Device driver for AT91SAM9RL Touchscreen Justin Waters
2008-04-25 18:56 ` [PATCH 2/2] atmel_tsadcc: Add board specific information for touchscreen driver Justin Waters
2008-04-25 22:29 ` Andrew Victor
2008-04-25 20:34 ` Dmitry Torokhov [this message]
2008-04-25 21:10 ` [PATCH 1/2] atmel_tsadcc: Device driver for AT91SAM9RL Touchscreen Russell King - ARM Linux
2008-04-25 21:37 ` Justin Waters
2008-04-25 22:52 ` David Brownell
2008-06-05 13:49 ` Haavard Skinnemoen
2008-04-25 22:16 ` Andrew Victor
2008-04-28 5:55 ` Uwe Kleine-König
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=20080425162535.ZZRA012@mailhub.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=justin.waters@timesys.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-input@vger.kernel.org \
--cc=linux@maxim.org.za \
/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).