[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260113190759.54355-1-dominik.karol.piatkowski@protonmail.com>
Date: Tue, 13 Jan 2026 19:08:37 +0000
From: Dominik Karol Piątkowski <dominik.karol.piatkowski@...tonmail.com>
To: Dave Penkler <dpenkler@...il.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Michael Rubin <matchstick@...erthere.org>, Dan Carpenter <dan.carpenter@...aro.org>
Cc: linux-kernel@...r.kernel.org, Dominik Karol Piątkowski <dominik.karol.piatkowski@...tonmail.com>
Subject: [PATCH 0/9] gpib: Unify *allocate_private
Recently, gpib driver got out of staging area. There is still a bit of work that
can be done to improve it.
Return values for *allocate_private functions as well as calling code in
gpib driver are all over the place. Unify them by returning -errno if
something fails, zero otherwise. Use the returned value as early return
value in case of error.
Untouched gpib files already use the proposed convention.
Signed-off-by: Dominik Karol Piątkowski <dominik.karol.piatkowski@...tonmail.com>
Dominik Karol Piątkowski (9):
gpib: agilent_82350b: Unify *allocate_private
gpib: cb7210: Unify *allocate_private
gpib: cec: Unify *allocate_private
gpib: gpio: Unify *allocate_private
gpib: hp_82335: Unify *allocate_private
gpib: hp_82341: Unify *allocate_private
gpib: ines: Unify *allocate_private
gpib: pc2: Unify *allocate_private
gpib: tnt4882: Unify *allocate_private
drivers/gpib/agilent_82350b/agilent_82350b.c | 5 +++--
drivers/gpib/cb7210/cb7210.c | 6 ++++--
drivers/gpib/cec/cec_gpib.c | 8 +++++---
drivers/gpib/gpio/gpib_bitbang.c | 9 +++++----
drivers/gpib/hp_82335/hp82335.c | 7 ++++---
drivers/gpib/hp_82341/hp_82341.c | 5 +++--
drivers/gpib/ines/ines_gpib.c | 8 +++++---
drivers/gpib/pc2/pc2_gpib.c | 8 +++++---
drivers/gpib/tnt4882/tnt4882_gpib.c | 17 ++++++++++-------
9 files changed, 44 insertions(+), 29 deletions(-)
--
2.43.0
Powered by blists - more mailing lists