]> err.no Git - linux-2.6/commitdiff
Input: ucb1400_ts - use schedule_timeout_uninterruptible
authorRene Herman <rene.herman@gmail.com>
Wed, 26 Sep 2007 04:02:19 +0000 (00:02 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 26 Sep 2007 04:02:19 +0000 (00:02 -0400)
Given that the code is not checking for signals it should
use uninterruptible sleep.

Signed-off-by: Rene Herman <rene.herman@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ucb1400_ts.c

index 36f944019158af753cda9f4105fa9a85176c4c50..86aed64ec0fb9dd54c5ed3ec1b134f62a2615d6e 100644 (file)
@@ -130,8 +130,7 @@ static unsigned int ucb1400_adc_read(struct ucb1400 *ucb, u16 adc_channel)
                if (val & UCB_ADC_DAT_VALID)
                        break;
                /* yield to other processes */
-               set_current_state(TASK_INTERRUPTIBLE);
-               schedule_timeout(1);
+               schedule_timeout_uninterruptible(1);
        }
 
        return UCB_ADC_DAT_VALUE(val);