From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: "Pavel Machek" <pavel@ucw.cz>
Cc: rpurdie@rpsys.net, lenz@cs.wisc.edu,
"kernel list" <linux-kernel@vger.kernel.org>,
"Russell King" <rmk@arm.linux.org.uk>,
Dirk@opfer-online.de, arminlitzel@web.de, pavel.urban@ct.cz,
metan@atrey.karlin.mff.cuni.cz, thommycheck@gmail.com,
milan@ucw.cz, patches@arm.linux.org.uk
Subject: Re: [PATCH] touchscreen support for collie (sharp zaurus sl-5500)
Date: Wed, 27 Jun 2007 12:13:09 -0400 [thread overview]
Message-ID: <d120d5000706270913l50389090x8dbbdd5d3e4c7314@mail.gmail.com> (raw)
In-Reply-To: <20070627144338.GA15584@elf.ucw.cz>
Hi Pavel,
On 6/27/07, Pavel Machek <pavel@ucw.cz> wrote:
>
> Add driver for collie touchscreen, partly based on ucb1x00-ts.c, but
> this one actually works.
>
>
> +config MCP_COLLIE_TS
> + tristate "Touchscreen collie support"
> + depends on MCP_UCB1200 && INPUT && !MCP_UCB1200_TS
> + ---help---
> + Driver for touchscreen on collie - sharp sl-5500.
> +
Can't ucb1x00-ts be modified to properly support collie hardware?
These drivers look almost like twin brothers.
> + input_report_abs(idev, ABS_X, x);
> + input_report_abs(idev, ABS_Y, y);
> + input_report_abs(idev, ABS_PRESSURE, pressure);
> + input_report_key(idev, BTN_TOUCH, 1);
Whitespace damage...
> + input_sync(idev);
> +}
> +
> +static inline void ucb1x00_ts_event_release(struct ucb1x00_ts *ts)
> +{
> + struct input_dev *idev = ts->idev;
> +
> + input_report_abs(idev, ABS_PRESSURE, 0);
> + input_report_key(idev, BTN_TOUCH, 0);
And here...
> +
> +static int ucb1x00_ts_open(struct input_dev *idev)
> +{
> + struct ucb1x00_ts *ts = idev->private;
Please use input_get_drvdata();
> +/*
> + * Release touchscreen resources. Disable IRQs.
> + */
> +static void ucb1x00_ts_close(struct input_dev *idev)
> +{
> + struct ucb1x00_ts *ts = idev->private;
And here as well.
> +
> + idev->private = ts;
input_set_drvdata();
--
Dmitry
next prev parent reply other threads:[~2007-06-27 16:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 14:43 Pavel Machek
2007-06-27 16:13 ` Dmitry Torokhov [this message]
2007-06-27 21:40 ` Pavel Machek
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=d120d5000706270913l50389090x8dbbdd5d3e4c7314@mail.gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=Dirk@opfer-online.de \
--cc=arminlitzel@web.de \
--cc=lenz@cs.wisc.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=metan@atrey.karlin.mff.cuni.cz \
--cc=milan@ucw.cz \
--cc=patches@arm.linux.org.uk \
--cc=pavel.urban@ct.cz \
--cc=pavel@ucw.cz \
--cc=rmk@arm.linux.org.uk \
--cc=rpurdie@rpsys.net \
--cc=thommycheck@gmail.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®