Way back when, the driver used to report the distance data from Bamboo
tablets unmodified. The unmodified data *increases* as you get closer
to the tablet, however, which is the opposite of what is expected. Chris
Bagwell changed this behavior in 2011 with upstream commit c18c2cec31.
At the same time, he changed the maximum distance from 63 to 31. Although
Chris eventually backported the former change here to the 2.6.30 tree as
part of commit e9ddd7f10b, the latter change was never made. The 2.6.38
and higher trees already have this change.

Fixes: e9ddd7f10b ("Bamboo 2nd and 3rd gen support for 2.6.30+ kernels")
Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>
---
 2.6.30/wacom_wac.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/2.6.30/wacom_wac.c b/2.6.30/wacom_wac.c
index e1758e1..281fb80 100644
--- a/2.6.30/wacom_wac.c
+++ b/2.6.30/wacom_wac.c
@@ -2811,37 +2811,37 @@ static const struct wacom_features wacom_features_0x47 =
        { "Wacom Intuos2 6x8",    WACOM_PKGLEN_INTUOS,    20320, 16240, 1023, 
31,
          INTUOS };
 static const struct wacom_features wacom_features_0xD1 =
-       { "Wacom BambooFun 2FG 4x5", WACOM_PKGLEN_BBFUN,  14720, 9200, 1023, 63,
+       { "Wacom BambooFun 2FG 4x5", WACOM_PKGLEN_BBFUN,  14720, 9200, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD4 =
-       { "Wacom Bamboo Pen 4x5", WACOM_PKGLEN_BBFUN,     14720,  9200, 1023, 
63,
+       { "Wacom Bamboo Pen 4x5", WACOM_PKGLEN_BBFUN,     14720,  9200, 1023, 
31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD2 =
-       { "Wacom Bamboo Craft",   WACOM_PKGLEN_BBFUN,     14720, 9200, 1023, 63,
+       { "Wacom Bamboo Craft",   WACOM_PKGLEN_BBFUN,     14720, 9200, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD3 =
-       { "Wacom BambooFun 2FG 6x8", WACOM_PKGLEN_BBFUN,  21648, 13700, 1023, 
63,
+       { "Wacom BambooFun 2FG 6x8", WACOM_PKGLEN_BBFUN,  21648, 13700, 1023, 
31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD0 =
-       { "Wacom Bamboo 2FG",     WACOM_PKGLEN_BBFUN,     14720, 9200, 1023, 63,
+       { "Wacom Bamboo 2FG",     WACOM_PKGLEN_BBFUN,     14720, 9200, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD5 =
-       { "Wacom Bamboo Pen 6x8", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 63,
+       { "Wacom Bamboo Pen 6x8", WACOM_PKGLEN_BBFUN, 21648, 13700, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD6 =
-       { "Wacom BambooPT 2FG 4x5", WACOM_PKGLEN_BBFUN,   14720, 9200, 1023, 63,
+       { "Wacom BambooPT 2FG 4x5", WACOM_PKGLEN_BBFUN,   14720, 9200, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD7 =
-       { "Wacom BambooPT 2FG Small", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 63,
+       { "Wacom BambooPT 2FG Small", WACOM_PKGLEN_BBFUN, 14720, 9200, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xD8 =
-       { "Wacom Bamboo Comic 2FG", WACOM_PKGLEN_BBFUN,   21648, 13700, 1023, 
63,
+       { "Wacom Bamboo Comic 2FG", WACOM_PKGLEN_BBFUN,   21648, 13700, 1023, 
31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xDA =
-       { "Wacom Bamboo 2FG 4x5 SE", WACOM_PKGLEN_BBFUN,  14720, 9200, 1023, 63,
+       { "Wacom Bamboo 2FG 4x5 SE", WACOM_PKGLEN_BBFUN,  14720, 9200, 1023, 31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xDB =
-       { "Wacom Bamboo 2FG 6x8 SE", WACOM_PKGLEN_BBFUN,  21648, 13700, 1023, 
63,
+       { "Wacom Bamboo 2FG 6x8 SE", WACOM_PKGLEN_BBFUN,  21648, 13700, 1023, 
31,
          BAMBOO_PT };
 static const struct wacom_features wacom_features_0xDD =
         { "Wacom Bamboo Connect", WACOM_PKGLEN_BBPEN,     14720, 9200, 1023, 
31,
-- 
2.16.2


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to