* [PATCH] Two small patches
@ 2010-01-04 23:17 Przemysław Firszt
2010-01-04 23:25 ` Peter Hutterer
2010-01-04 23:34 ` Marcel Holtmann
0 siblings, 2 replies; 4+ messages in thread
From: Przemysław Firszt @ 2010-01-04 23:17 UTC (permalink / raw)
To: linux-bluetooth, Ping, Peter Hutterer
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
Hi,
2 patches:
- use defined variable is_proximity
-remove duplicate comment from xf86WacomDefs.h
Those two are not important, but I don't want to leave it till later -
"the later" it might never happen.
--
Przemo
[-- Attachment #2: 0002-is_proximity-is-defined-so-let-s-use-it.patch --]
[-- Type: text/x-patch, Size: 709 bytes --]
>From a1865a5f06f165a398d9a87d34c96b59b1d8660c Mon Sep 17 00:00:00 2001
From: Przemo Firszt <przemo@firszt.eu>
Date: Mon, 4 Jan 2010 19:25:20 +0000
Subject: [PATCH 2/3] is_proximity is defined, so let's use it
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
---
src/wcmCommon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index 32ad82e..1c1cc2c 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -779,7 +779,7 @@ void xf86WcmSendEvents(LocalDevicePtr local, const WacomDeviceState* ds)
}
/* don't move the cursor when going out-prox */
- if (!ds->proximity)
+ if (!is_proximity)
{
x = priv->oldX;
y = priv->oldY;
--
1.6.5.7
[-- Attachment #3: 0003-Remove-duplicate-comment-in-xf86WacomDefs.h.patch --]
[-- Type: text/x-patch, Size: 1009 bytes --]
>From 714b4b3b989ae5a36b839bd4fe229999233cd192 Mon Sep 17 00:00:00 2001
From: Przemo Firszt <przemo@firszt.eu>
Date: Mon, 4 Jan 2010 23:13:06 +0000
Subject: [PATCH 3/3] Remove duplicate comment in xf86WacomDefs.h
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
---
src/xf86WacomDefs.h | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h
index 1e4a441..34a9375 100644
--- a/src/xf86WacomDefs.h
+++ b/src/xf86WacomDefs.h
@@ -324,10 +324,6 @@ struct _WacomChannel
WacomDeviceState work; /* next state */
- /* the following struct contains the current known state of the
- * device channel, as well as the previous MAX_SAMPLES states
- * for use in detecting hardware defects, jitter, trends, etc. */
-
/* the following union contains the current known state of the
* device channel, as well as the previous MAX_SAMPLES states
* for use in detecting hardware defects, jitter, trends, etc. */
--
1.6.5.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Two small patches
2010-01-04 23:17 [PATCH] Two small patches Przemysław Firszt
@ 2010-01-04 23:25 ` Peter Hutterer
2010-01-04 23:34 ` Marcel Holtmann
1 sibling, 0 replies; 4+ messages in thread
From: Peter Hutterer @ 2010-01-04 23:25 UTC (permalink / raw)
To: Przemysław Firszt; +Cc: linux-bluetooth, Ping
On Mon, Jan 04, 2010 at 11:17:18PM +0000, Przemysław Firszt wrote:
> Hi,
> 2 patches:
> - use defined variable is_proximity
> -remove duplicate comment from xf86WacomDefs.h
>
> Those two are not important, but I don't want to leave it till later -
> "the later" it might never happen.
> --
> Przemo
> From a1865a5f06f165a398d9a87d34c96b59b1d8660c Mon Sep 17 00:00:00 2001
> From: Przemo Firszt <przemo@firszt.eu>
> Date: Mon, 4 Jan 2010 19:25:20 +0000
> Subject: [PATCH 2/3] is_proximity is defined, so let's use it
>
> Signed-off-by: Przemo Firszt <przemo@firszt.eu>
> ---
> src/wcmCommon.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/wcmCommon.c b/src/wcmCommon.c
> index 32ad82e..1c1cc2c 100644
> --- a/src/wcmCommon.c
> +++ b/src/wcmCommon.c
> @@ -779,7 +779,7 @@ void xf86WcmSendEvents(LocalDevicePtr local, const WacomDeviceState* ds)
> }
>
> /* don't move the cursor when going out-prox */
> - if (!ds->proximity)
> + if (!is_proximity)
> {
> x = priv->oldX;
> y = priv->oldY;
> --
> 1.6.5.7
>
I'd prefer a more verbose explanation here. Why not just use ds->proximity
and remove is_proximity? (I know the answer, but it'd be nice to get it from
the patch, not from the code)
> From 714b4b3b989ae5a36b839bd4fe229999233cd192 Mon Sep 17 00:00:00 2001
> From: Przemo Firszt <przemo@firszt.eu>
> Date: Mon, 4 Jan 2010 23:13:06 +0000
> Subject: [PATCH 3/3] Remove duplicate comment in xf86WacomDefs.h
>
> Signed-off-by: Przemo Firszt <przemo@firszt.eu>
> ---
> src/xf86WacomDefs.h | 4 ----
> 1 files changed, 0 insertions(+), 4 deletions(-)
>
> diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h
> index 1e4a441..34a9375 100644
> --- a/src/xf86WacomDefs.h
> +++ b/src/xf86WacomDefs.h
> @@ -324,10 +324,6 @@ struct _WacomChannel
>
> WacomDeviceState work; /* next state */
>
> - /* the following struct contains the current known state of the
> - * device channel, as well as the previous MAX_SAMPLES states
> - * for use in detecting hardware defects, jitter, trends, etc. */
> -
> /* the following union contains the current known state of the
> * device channel, as well as the previous MAX_SAMPLES states
> * for use in detecting hardware defects, jitter, trends, etc. */
> --
> 1.6.5.7
merged, thanks.
Cheers,
Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Two small patches
2010-01-04 23:17 [PATCH] Two small patches Przemysław Firszt
2010-01-04 23:25 ` Peter Hutterer
@ 2010-01-04 23:34 ` Marcel Holtmann
2010-01-07 20:18 ` Przemysław Firszt
1 sibling, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2010-01-04 23:34 UTC (permalink / raw)
To: Przemysław Firszt; +Cc: linux-bluetooth, Ping, Peter Hutterer
Hi Przemo,
> 2 patches:
> - use defined variable is_proximity
> -remove duplicate comment from xf86WacomDefs.h
>
> Those two are not important, but I don't want to leave it till later -
> "the later" it might never happen.
I think the Bluetooth mailing list is the wrong on here. Better use some
X.org related mailing list or similar.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Two small patches
2010-01-04 23:34 ` Marcel Holtmann
@ 2010-01-07 20:18 ` Przemysław Firszt
0 siblings, 0 replies; 4+ messages in thread
From: Przemysław Firszt @ 2010-01-07 20:18 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-bluetooth
Dnia 2010-01-04, pon o godzinie 15:34 -0800, Marcel Holtmann pisze:
[..]
> I think the Bluetooth mailing list is the wrong on here. Better use some
> X.org related mailing list or similar.
Ooops, sorry for the noise - wrong list.
Przemo
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-07 20:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-04 23:17 [PATCH] Two small patches Przemysław Firszt
2010-01-04 23:25 ` Peter Hutterer
2010-01-04 23:34 ` Marcel Holtmann
2010-01-07 20:18 ` Przemysław Firszt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox