idevice: Simplify startup handling

System Internals / UPower - Benjamin Berg [redhat.com] - 10 May 2022 09:06 UTC

The startup polling just creates the idevice_t. It is trivial to detect that, so move it into the refresh handler and set the initial polling to the shorter period, increasing the poll interval later on.

dc252ab idevice: Simplify startup handling
src/linux/up-device-idevice.c | 101 ++++++++++++------------------------------
1 file changed, 29 insertions(+), 72 deletions(-)

Upstream: cgit.freedesktop.org


  • Share