mirror of
https://github.com/openharmony/drivers_framework.git
synced 2026-08-27 02:42:28 -04:00
fix the bug in gpio_core.c
Signed-off-by: jiaziyang <jiaziyang1@huawei.com>
This commit is contained in:
@@ -174,7 +174,7 @@ struct GpioCntlr *GpioGetCntlr(uint16_t gpio)
|
||||
|
||||
list = GpioCntlrListGet();
|
||||
DLIST_FOR_EACH_ENTRY_SAFE(cntlr, tmp, list, struct GpioCntlr, list) {
|
||||
if (gpio >= cntlr->start && gpio <= (cntlr->start + cntlr->count)) {
|
||||
if (gpio >= cntlr->start && gpio < (cntlr->start + cntlr->count)) {
|
||||
GpioCntlrListPut();
|
||||
return cntlr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user