mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 14:50:15 +04:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user