Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: wm97xx - remove deprecated create_singletheread_workqueue

alloc_ordered_workqueue() replaces deprecated
create_singlethread_workqueue().

It queues work items via &wm->ts_reader and &wm->pen_event_work which map
to wm97xx_pen_irq_worker (handles a pen down interrupt) and
wm97xx_ts_reader (the touchscreen sample reader) respectively. Hence, an
ordered dedicated workqueue has been used.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Bhaktipriya Shridhar and committed by
Dmitry Torokhov
c9a3a7cf 62e51475

+1 -1
+1 -1
drivers/input/touchscreen/wm97xx-core.c
··· 500 500 { 501 501 struct wm97xx *wm = input_get_drvdata(idev); 502 502 503 - wm->ts_workq = create_singlethread_workqueue("kwm97xx"); 503 + wm->ts_workq = alloc_ordered_workqueue("kwm97xx", 0); 504 504 if (wm->ts_workq == NULL) { 505 505 dev_err(wm->dev, 506 506 "Failed to create workqueue\n");