diff options
author | Andrzej Pietrasiewicz <andrzej.p@collabora.com> | 2020-10-05 06:16:07 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-12-03 07:10:33 +0100 |
commit | d69f0a43c677e8afc67a222e1e7b51b9acc69cd3 (patch) | |
tree | 1b03a8d3ed76cb507f344c85cd0d0c474e6b7fa3 /drivers/input/touchscreen/ipaq-micro-ts.c | |
parent | Input: add input_device_enabled() (diff) | |
download | linux-d69f0a43c677e8afc67a222e1e7b51b9acc69cd3.tar.xz linux-d69f0a43c677e8afc67a222e1e7b51b9acc69cd3.zip |
Input: use input_device_enabled()
Use the newly added helper in relevant input drivers.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Link: https://lore.kernel.org/r/20200608112211.12125-3-andrzej.p@collabora.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/ipaq-micro-ts.c')
-rw-r--r-- | drivers/input/touchscreen/ipaq-micro-ts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ipaq-micro-ts.c b/drivers/input/touchscreen/ipaq-micro-ts.c index 5c3977e1af6f..0eb5689fe65f 100644 --- a/drivers/input/touchscreen/ipaq-micro-ts.c +++ b/drivers/input/touchscreen/ipaq-micro-ts.c @@ -135,7 +135,7 @@ static int __maybe_unused micro_ts_resume(struct device *dev) mutex_lock(&input->mutex); - if (input->users) + if (input_device_enabled(input)) micro_ts_toggle_receive(ts, true); mutex_unlock(&input->mutex); |