[oe-commits] Martin Jansa : xserver-kdrive-common: fix touchscreen calibration with 2.6. 31, sysfs node moved

git version control git at git.openembedded.org
Sat Nov 7 19:58:52 UTC 2009


Module: openembedded.git
Branch: shr/merge
Commit: 2678bf5df435a19b705e6231999ea020b70eaccf
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2678bf5df435a19b705e6231999ea020b70eaccf

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Sat Nov  7 18:31:52 2009 +0100

xserver-kdrive-common: fix touchscreen calibration with 2.6.31, sysfs node moved

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../xserver-kdrive-common/shr/89xTs_Calibrate      |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/recipes/xserver-kdrive-common/xserver-kdrive-common/shr/89xTs_Calibrate b/recipes/xserver-kdrive-common/xserver-kdrive-common/shr/89xTs_Calibrate
index f707301..b852c0c 100644
--- a/recipes/xserver-kdrive-common/xserver-kdrive-common/shr/89xTs_Calibrate
+++ b/recipes/xserver-kdrive-common/xserver-kdrive-common/shr/89xTs_Calibrate
@@ -7,6 +7,11 @@ done
 
 SYSFS_CALIBRATION_DIR=/sys/bus/i2c/devices/0-0073/s3c2440-ts/calibration
 
+if [ ! -d $SYSFS_CALIBRATION_DIR ]; then
+  # moved in 2.6.31
+  SYSFS_CALIBRATION_DIR=/sys/devices/platform/s3c2440-i2c/i2c-adapter/i2c-0/0-0073/s3c2410-ts/calibration
+fi
+
 if [ -d $SYSFS_CALIBRATION_DIR ]; then
   echo 0 > $SYSFS_CALIBRATION_DIR/0
   echo 80000 > $SYSFS_CALIBRATION_DIR/1





More information about the Openembedded-commits mailing list