ODROID-M2: Fix for build error.

Signed-off-by: xiane <sangch.go@gmail.com>
Change-Id: I62c2c7ae7cc1458fbccbac260374f0f1251b209a
This commit is contained in:
xiane
2024-07-18 14:32:17 +09:00
parent 47402619ff
commit aa9e8d63bd

View File

@@ -776,6 +776,7 @@ static int _getPUPD (int pin)
regOffset = M2_VCCIO1_4_IOC_PUPD_OFFSET;
break;
case 2:
regOffset = 0;
__attribute__((fallthrough));
case 3:
regOffset = M2_VCCIO3_5_IOC_PUPD_OFFSET;
@@ -839,6 +840,7 @@ static int _pullUpDnControl (int pin, int pud)
regOffset = M2_VCCIO1_4_IOC_PUPD_OFFSET;
break;
case 2:
regOffset = 0;
__attribute__((fallthrough));
case 3:
regOffset = M2_VCCIO3_5_IOC_PUPD_OFFSET;