Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1788180e authored by Rene Herman's avatar Rene Herman Committed by Dmitry Torokhov
Browse files

Input: ucb1400_ts - use schedule_timeout_uninterruptible



Given that the code is not checking for signals it should
use uninterruptible sleep.

Signed-off-by: default avatarRene Herman <rene.herman@gmail.com>
Acked-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 2f9d2827
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);