Commit c9a3a7cf authored by Bhaktipriya Shridhar's avatar Bhaktipriya Shridhar Committed by Dmitry Torokhov

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: default avatarBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 62e51475
...@@ -500,7 +500,7 @@ static int wm97xx_ts_input_open(struct input_dev *idev) ...@@ -500,7 +500,7 @@ static int wm97xx_ts_input_open(struct input_dev *idev)
{ {
struct wm97xx *wm = input_get_drvdata(idev); struct wm97xx *wm = input_get_drvdata(idev);
wm->ts_workq = create_singlethread_workqueue("kwm97xx"); wm->ts_workq = alloc_ordered_workqueue("kwm97xx", 0);
if (wm->ts_workq == NULL) { if (wm->ts_workq == NULL) {
dev_err(wm->dev, dev_err(wm->dev,
"Failed to create workqueue\n"); "Failed to create workqueue\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment