gpio-latch-mikrotik: fix logic error

latch_enabled should be false when unlocking. it's set to true when
locking. Probably copy/paste bug.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/23150
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Rosen Penev authored and Hauke Mehrtens committed 2026-05-14 22:31:53 +02:00
1 parent 89d8dc13d0
commit d2f6e5b6fa
1 file changed
+1 -1
@@ -44,7 +44,7 @@ static void gpio_latch_unlock(struct gpio_latch_chip *glc, bool disable)
mutex_unlock(&glc->latch_mutex);
if (disable)
glc->latch_enabled = true;
glc->latch_enabled = false;
mutex_unlock(&glc->mutex);
}