sensor: Replace GpioLock with stdplus RAII helper
The old RAII helper was not move safe, although it was never moved in
the current code so it didn't have any effect on runtime safety.
Change-Id: Ica19ed7e60d699d86d0166b356cedb82e4a28b61
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/mainloop.cpp b/mainloop.cpp
index 82cf3aa..05ac623 100644
--- a/mainloop.cpp
+++ b/mainloop.cpp
@@ -427,7 +427,7 @@
{
// RAII object for GPIO unlock / lock
- sensor::GpioLock gpioLock(sensor->getGpio());
+ auto locker = sensor::gpioUnlock(sensor->getGpio());
// Retry for up to a second if device is busy
// or has a transient error.