]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Input: cyapa - remove redundant pm_runtime_mark_last_busy() calls
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 27 Oct 2025 11:58:23 +0000 (13:58 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 13 Dec 2025 09:23:01 +0000 (01:23 -0800)
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(),
pm_runtime_autosuspend() and pm_request_autosuspend() now include a call
to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to
pm_runtime_mark_last_busy().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://patch.msgid.link/20251027115823.391080-3-sakari.ailus@linux.intel.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa.c
drivers/input/mouse/cyapa_gen5.c

index 00c87c0532a60f872f561fd1012ff052ee7d0526..6e0d956617a1c69b9582aa849645af4dd742dcb2 100644 (file)
@@ -403,7 +403,6 @@ static int cyapa_open(struct input_dev *input)
        }
 
        pm_runtime_get_sync(dev);
-       pm_runtime_mark_last_busy(dev);
        pm_runtime_put_sync_autosuspend(dev);
 out:
        mutex_unlock(&cyapa->state_sync_lock);
@@ -666,7 +665,6 @@ out:
                pm_runtime_enable(dev);
 
                pm_runtime_get_sync(dev);
-               pm_runtime_mark_last_busy(dev);
                pm_runtime_put_sync_autosuspend(dev);
        }
 
@@ -710,7 +708,6 @@ static irqreturn_t cyapa_irq(int irq, void *dev_id)
                         * process.
                         */
                        pm_runtime_get_sync(dev);
-                       pm_runtime_mark_last_busy(dev);
                        pm_runtime_put_sync_autosuspend(dev);
                }
 
index 3b4439f106356377fe8f4c532ace0aedc0074574..59f6e97d54827dec4b8314fe1abfd2197dabd4a2 100644 (file)
@@ -2833,7 +2833,6 @@ static int cyapa_pip_event_process(struct cyapa *cyapa,
                 * process.
                 */
                pm_runtime_get_sync(dev);
-               pm_runtime_mark_last_busy(dev);
                pm_runtime_put_sync_autosuspend(dev);
                return 0;
        } else if (report_id != PIP_TOUCH_REPORT_ID &&