device: Fully re-evaluate suspend/resume logic when delayed

If we delayed the suspend(/resume) call, then the circumstances may have
changed. In particular, an active action may have completed already
which means that the driver handler should not be called anymore.
This commit is contained in:
Benjamin Berg
2022-05-17 20:26:17 +02:00
parent 54a98bb286
commit 56ae75d2b2
3 changed files with 108 additions and 89 deletions

View File

@@ -130,6 +130,9 @@ typedef struct
void match_data_free (FpMatchData *match_data);
void fpi_device_suspend (FpDevice *device);
void fpi_device_resume (FpDevice *device);
void fpi_device_configure_wakeup (FpDevice *device,
gboolean enabled);
void fpi_device_update_temp (FpDevice *device,