From e3b2983bac1ca97d693b8417740c932f6d8800e7 Mon Sep 17 00:00:00 2001 From: Jueon Park <52922372+pjueon@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:17:27 +0900 Subject: [PATCH] Update sysfs_prefixes Update sysfs_prefixes for kernel 5.15 See: NVIDIA/jetson-gpio@e9f417a40fd2347182ed82af6a3a7b837db9df64 --- src/GPIOPinData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GPIOPinData.cpp b/src/GPIOPinData.cpp index 9405ce5..775cd5e 100644 --- a/src/GPIOPinData.cpp +++ b/src/GPIOPinData.cpp @@ -674,7 +674,7 @@ namespace GPIO map gpio_chip_ngpio{}; map pwm_dirs{}; - vector sysfs_prefixes = {"/sys/devices/", "/sys/devices/platform/"}; + vector sysfs_prefixes = {"/sys/devices/", "/sys/devices/platform/", "/sys/bus/platform/devices/"}; // Get the gpiochip offsets set gpio_chip_names{};