* [PATCH] Input: bcm5974 - Report button also for zero fingers
@ 2011-02-24 19:37 Henrik Rydberg
2011-02-24 22:20 ` Dmitry Torokhov
0 siblings, 1 reply; 3+ messages in thread
From: Henrik Rydberg @ 2011-02-24 19:37 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Jiri Kosina, linux-input, linux-kernel, Henrik Rydberg
With the current code, pressing the integrated button with an
isolating tool does not result in any button report. Fixed
with this this patch.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
---
Hi Dmitry,
that nobody every complained about this bug is beyond me...
Thanks,
Henrik
drivers/input/mouse/bcm5974.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/input/mouse/bcm5974.c b/drivers/input/mouse/bcm5974.c
index ee82851..0efaf66 100644
--- a/drivers/input/mouse/bcm5974.c
+++ b/drivers/input/mouse/bcm5974.c
@@ -430,10 +430,6 @@ static int report_tp_state(struct bcm5974 *dev, int size)
ptest = int2bound(&c->p, raw_p);
origin = raw2int(f->origin);
- /* set the integrated button if applicable */
- if (c->tp_type == TYPE2)
- ibt = raw2int(dev->tp_data[BUTTON_TYPE2]);
-
/* while tracking finger still valid, count all fingers */
if (ptest > PRESSURE_LOW && origin) {
abs_p = ptest;
@@ -452,6 +448,10 @@ static int report_tp_state(struct bcm5974 *dev, int size)
}
}
+ /* set the integrated button if applicable */
+ if (c->tp_type == TYPE2)
+ ibt = raw2int(dev->tp_data[BUTTON_TYPE2]);
+
if (dev->fingers < nmin)
dev->fingers = nmin;
if (dev->fingers > nmax)
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Input: bcm5974 - Report button also for zero fingers
2011-02-24 19:37 [PATCH] Input: bcm5974 - Report button also for zero fingers Henrik Rydberg
@ 2011-02-24 22:20 ` Dmitry Torokhov
2011-02-24 22:31 ` Henrik Rydberg
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2011-02-24 22:20 UTC (permalink / raw)
To: Henrik Rydberg; +Cc: Jiri Kosina, linux-input, linux-kernel
On Thu, Feb 24, 2011 at 08:37:44PM +0100, Henrik Rydberg wrote:
> With the current code, pressing the integrated button with an
> isolating tool does not result in any button report. Fixed
> with this this patch.
>
> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
> ---
> Hi Dmitry,
>
> that nobody every complained about this bug is beyond me...
I guess nobody uses styluses to work with the touchpad... I'll apply it
of course, but since I do not recall bug reports I'll hold it till .39 I
think.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Input: bcm5974 - Report button also for zero fingers
2011-02-24 22:20 ` Dmitry Torokhov
@ 2011-02-24 22:31 ` Henrik Rydberg
0 siblings, 0 replies; 3+ messages in thread
From: Henrik Rydberg @ 2011-02-24 22:31 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Jiri Kosina, linux-input, linux-kernel
On Thu, Feb 24, 2011 at 02:20:59PM -0800, Dmitry Torokhov wrote:
> On Thu, Feb 24, 2011 at 08:37:44PM +0100, Henrik Rydberg wrote:
> > With the current code, pressing the integrated button with an
> > isolating tool does not result in any button report. Fixed
> > with this this patch.
> >
> > Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
> > ---
> > Hi Dmitry,
> >
> > that nobody every complained about this bug is beyond me...
>
> I guess nobody uses styluses to work with the touchpad... I'll apply it
> of course, but since I do not recall bug reports I'll hold it till .39 I
> think.
I was hoping it could slip into 2.6.38 - I can even produce a bug
report if needed. :-)
Henrik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-24 22:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-24 19:37 [PATCH] Input: bcm5974 - Report button also for zero fingers Henrik Rydberg
2011-02-24 22:20 ` Dmitry Torokhov
2011-02-24 22:31 ` Henrik Rydberg
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).