diff options
author | Richard Zhu <r65037@freescale.com> | 2008-03-12 10:27:26 +0800 |
---|---|---|
committer | Daniel Schaeffer <daniel.schaeffer@timesys.com> | 2008-08-25 15:20:43 -0400 |
commit | aba6a1b9f031fdf426c03c42c2cd1c55df0680d6 (patch) | |
tree | 825a32bee3030c7a6f3ef8e183497e89f26a939b /drivers/input | |
parent | 12afc0de99f62b780b97d9441fc577cd5fe1582a (diff) |
ENGR00068036 3DS pmic adc arbitration fix
Fix 3DS pmic adc arbitration fix and batt hw event support
Signed-off-by: Mark Zhou <b02241@freescale.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/mxc_ts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/mxc_ts.c b/drivers/input/touchscreen/mxc_ts.c index 514f73082bfe..eefd4b9f5068 100644 --- a/drivers/input/touchscreen/mxc_ts.c +++ b/drivers/input/touchscreen/mxc_ts.c @@ -1,5 +1,5 @@ /* - * Copyright 2007 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright 2007-2008 Freescale Semiconductor, Inc. All Rights Reserved. */ /* @@ -49,8 +49,8 @@ static int ts_thread(void *arg) while (input_ts_installed) { try_to_freeze(); memset(&ts_sample, 0, sizeof(t_touch_screen)); - pmic_adc_get_touch_sample(&ts_sample, !wait); - + if (0 != pmic_adc_get_touch_sample(&ts_sample, !wait)) + continue; input_report_abs(mxc_inputdev, ABS_X, ts_sample.x_position); input_report_abs(mxc_inputdev, ABS_Y, ts_sample.y_position); input_report_abs(mxc_inputdev, ABS_PRESSURE, |