public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] iio: light: gp2ap020a00f: fix return type and simplify locking
@ 2026-02-16  0:53 Ethan Tidmore
  2026-02-16  0:53 ` [PATCH v3 1/2] iio: light: gp2ap020a00f: simplify locking with guard() Ethan Tidmore
  2026-02-16  0:53 ` [PATCH v3 2/2] iio: light: gp2ap020a00f: correct return type to int Ethan Tidmore
  0 siblings, 2 replies; 12+ messages in thread
From: Ethan Tidmore @ 2026-02-16  0:53 UTC (permalink / raw)
  To: jic23; +Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel, Ethan Tidmore

Patch 1 is a cleanup that simplifies the locking mechanisms using
guard(), as suggested by Jonathan Cameron. This removes the need
for goto error paths, making the subsequent fix cleaner.

Patch 2 changes the return type of the helper function to int and
adds the necessary error checks in the callers.

Ethan Tidmore (2):
  iio: light: gp2ap020a00f: simplify locking with guard()
  iio: light: gp2ap020a00f: correct return type to int

 drivers/iio/light/gp2ap020a00f.c | 77 ++++++++++++--------------------
 1 file changed, 29 insertions(+), 48 deletions(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-02-17 10:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-16  0:53 [PATCH v3 0/2] iio: light: gp2ap020a00f: fix return type and simplify locking Ethan Tidmore
2026-02-16  0:53 ` [PATCH v3 1/2] iio: light: gp2ap020a00f: simplify locking with guard() Ethan Tidmore
2026-02-16  7:08   ` Andy Shevchenko
2026-02-16 21:04     ` Ethan Tidmore
2026-02-17  8:37       ` Andy Shevchenko
2026-02-17  9:02         ` Ethan Tidmore
2026-02-17  9:12           ` Andy Shevchenko
2026-02-17  9:03         ` Andy Shevchenko
2026-02-17  9:10           ` Ethan Tidmore
2026-02-17 10:23             ` Andy Shevchenko
2026-02-16  0:53 ` [PATCH v3 2/2] iio: light: gp2ap020a00f: correct return type to int Ethan Tidmore
2026-02-16  7:10   ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox