From: Rosen Penev Date: Thu, 23 Apr 2026 21:41:18 +0000 (-0700) Subject: gpio-latch-mikrotik: fix logic error X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d2f6e5b6fa95b376cc87f1babcbeb6087ddd09e4;p=thirdparty%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/23150 Signed-off-by: Hauke Mehrtens --- diff --git a/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c b/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c index d8b5603a580..00395985465 100644 --- a/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c +++ b/target/linux/ath79/files/drivers/gpio/gpio-latch-mikrotik.c @@ -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); }