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
2026-04-23 14:41:18 -07:00
committed by Hauke Mehrtens
parent 89d8dc13d0
commit d2f6e5b6fa
@@ -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);
}