[PATCH v2 0/2] barco-p50-gpio: normalize return value of "get" and convert to guard()

Dmitry Torokhov posted 2 patches 2 weeks, 4 days ago
drivers/platform/x86/barco-p50-gpio.c | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
[PATCH v2 0/2] barco-p50-gpio: normalize return value of "get" and convert to guard()
Posted by Dmitry Torokhov 2 weeks, 4 days ago
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@gmail.com>
---
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
Re: [PATCH v2 0/2] barco-p50-gpio: normalize return value of "get" and convert to guard()
Posted by Ilpo Järvinen 2 weeks ago
On Wed, 18 Mar 2026 19:56:16 -0700, Dmitry Torokhov wrote:

> 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()
> 
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/2] platform/x86: barco-p50-gpio: normalize return value of gpio_get
      commit: 1c9d30d37aaffe3454d70b89a77f8aaecda257bf
[2/2] platform/x86: barco-p50-gpio: convert to guard() notation
      commit: a5877e921389178f994a5ec15a145d7e7ba3ec65

--
 i.