]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpiolib: acpi: Fix gpio count with string references
authorAlban Bedel <alban.bedel@lht.dlh.de>
Thu, 29 Jan 2026 14:59:44 +0000 (15:59 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 4 Feb 2026 10:13:02 +0000 (11:13 +0100)
commitc62e0658d458d8f100445445c3ddb106f3824a45
tree5dbd532f2cb33e7ccc51a680137f4779683c4227
parent18f7fcd5e69a04df57b563360b88be72471d6b62
gpiolib: acpi: Fix gpio count with string references

Since commit 9880702d123f2 ("ACPI: property: Support using strings in
reference properties") it is possible to use strings instead of local
references. This work fine with single GPIO but not with arrays as
acpi_gpio_package_count() didn't handle this case. Update it to handle
strings like local references to cover this case as well.

Signed-off-by: Alban Bedel <alban.bedel@lht.dlh.de>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://patch.msgid.link/20260129145944.3372777-1-alban.bedel@lht.dlh.de
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib-acpi-core.c