From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: John Sung <penmount.touch@gmail.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] Input: penmount - add PenMount 6250 support
Date: Fri, 9 Sep 2011 11:07:58 -0700 [thread overview]
Message-ID: <20110909180758.GE32383@core.coreip.homeip.net> (raw)
In-Reply-To: <20110909180637.GD32383@core.coreip.homeip.net>
On Fri, Sep 09, 2011 at 11:06:37AM -0700, Dmitry Torokhov wrote:
> On Fri, Sep 09, 2011 at 11:04:19AM -0700, Dmitry Torokhov wrote:
> > On Fri, Sep 09, 2011 at 04:07:47PM +0800, John Sung wrote:
> > > Add multi touch support for PenMount 6250 touch controller.
> > >
> >
> > Given the changes to previous patches, this one turns into:
> >
>
> Also, I wonder if we should do something like this:
>
And if you could give this patch a try that would be great.
Thank you.
--
Dmitry
Input: penmount - simplify unregister procedure
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Since touchscreen driver does not handle any events to be sent to the
device we can close serio port first and then unregister the input device.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
---
drivers/input/touchscreen/penmount.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/input/touchscreen/penmount.c b/drivers/input/touchscreen/penmount.c
index 7ebed38..618385e 100644
--- a/drivers/input/touchscreen/penmount.c
+++ b/drivers/input/touchscreen/penmount.c
@@ -183,12 +183,12 @@ static void pm_disconnect(struct serio *serio)
{
struct pm *pm = serio_get_drvdata(serio);
- input_get_device(pm->dev);
- input_unregister_device(pm->dev);
serio_close(serio);
- serio_set_drvdata(serio, NULL);
- input_put_device(pm->dev);
+
+ input_unregister_device(pm->dev);
kfree(pm);
+
+ serio_set_drvdata(serio, NULL);
}
/*
next prev parent reply other threads:[~2011-09-09 18:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-09 8:07 [PATCH 1/3] Input: penmount - add PenMount 6000 support John Sung
2011-09-09 8:07 ` [PATCH 2/3] Input: penmount - add PenMount 3000 support John Sung
2011-09-09 18:03 ` Dmitry Torokhov
2011-09-09 8:07 ` [PATCH 3/3] Input: penmount - add PenMount 6250 support John Sung
2011-09-09 18:04 ` Dmitry Torokhov
2011-09-09 18:06 ` Dmitry Torokhov
2011-09-09 18:07 ` Dmitry Torokhov [this message]
2011-09-09 18:00 ` [PATCH 1/3] Input: penmount - add PenMount 6000 support 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=20110909180758.GE32383@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penmount.touch@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
Powered by JetHome