Input: ucb1400_ts - use sched_setscheduler()

Fix Philips UCB1400 driver to use sched_setscheduler() instead of setting
the fields of task_struct directly.

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Satoru Takeuchi and committed by
Dmitry Torokhov
c130bdba 1e0c5b12

+2 -2
+2 -2
drivers/input/touchscreen/ucb1400_ts.c
··· 288 288 struct ucb1400 *ucb = _ucb; 289 289 struct task_struct *tsk = current; 290 290 int valid = 0; 291 + struct sched_param param = { .sched_priority = 1 }; 291 292 292 - tsk->policy = SCHED_FIFO; 293 - tsk->rt_priority = 1; 293 + sched_setscheduler(tsk, SCHED_FIFO, &param); 294 294 295 295 while (!kthread_should_stop()) { 296 296 unsigned int x, y, p;