[PATCH v2 0/2] barco-p50-gpio: normalize return value of "get" and convert to guard()
From: Dmitry Torokhov
Date: Wed Mar 18 2026 - 22:56:34 EST
These 2 patches fixes a regression in the driver arising from gpiolib
tightening its API, and converts it to guard() notation when taking a
mutex to simplify the code flow.
v2:
- added reviiewed-by and fixes trailers
- added new patch using guard()
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
Dmitry Torokhov (2):
platform/x86: barco-p50-gpio: normalize return value of gpio_get
platform/x86: barco-p50-gpio: convert to guard() notation
drivers/platform/x86/barco-p50-gpio.c | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
---
base-commit: b84a0ebe421ca56995ff78b66307667b62b3a900
change-id: 20260318-barco-p50-gpio-set-c560daea533e
Thanks.
--
Dmitry