]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
gpio-latch-mikrotik: fix logic error 23150/head
authorRosen Penev <rosenp@gmail.com>
Thu, 23 Apr 2026 21:41:18 +0000 (14:41 -0700)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 14 May 2026 20:31:53 +0000 (22:31 +0200)
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>
target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c

index d8b5603a580f6f0be1495843f581572a86002754..003959854653c1ddd137788d349a94cf7e7d3213 100644 (file)
@@ -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);
 }