From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-244121.protonmail.ch (mail-244121.protonmail.ch [109.224.244.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 534162EC0A7 for ; Thu, 15 Jan 2026 19:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.121 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768504814; cv=none; b=CIuDCRpHIqCOSrCgxyJjGK3I3BC678S/q1GJDq6tw/05m0+qe3BvqshnJ53x+4E5ngnXTXiraie7wGV+HdIkE2fNXT5wazZnenKcxQky8D5xhN/HFtFPqtzTfKIE56geLEitQRLMvvD425FBKgvTNOIJap0+0C8y87xrc6uTe+U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768504814; c=relaxed/simple; bh=6lA9oseU4CdaE81zM7fq6TTnsjvAaFbsdkdUA/eB79E=; h=Date:To:From:Cc:Subject:Message-ID:MIME-Version:Content-Type; b=MuH2Bar/cLThWXiGgdUDoH7hHgwIZs7g6bxNqUaxGJAMkiip53pdQxUPuAHdFZMc9rv8lVAsfrSpfIBEjTaKEtsj4tL5r2d1A2oseUfZdmNHvfBoXFL9T15qHArbhUHFG0PfauMcjkmZ1l+8DzeQznGhfkOMdBIfZXUt4Jj8J80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com; spf=pass smtp.mailfrom=protonmail.com; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b=HaWOYRMC; arc=none smtp.client-ip=109.224.244.121 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=protonmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=protonmail.com header.i=@protonmail.com header.b="HaWOYRMC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1768504804; x=1768764004; bh=tsG6q3uM6QzYN71yZ3AdqOjWjZGs/pC8GKpkJVNKZJg=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=HaWOYRMCgNbHvm6lkQXpTQ7ayCCZWtNUggHcVbRG/RLE13rvXObODRgeqMga3dE7h Lx96qdMQ0vtAsbQ8Bvn0erHl+mT5QwzVw1s5OLCJtGlymVc6JnbDeFCrFs2n317XHE bSvfuuVZaJ26iE+fuS82yXhZH2LASuO6yik8H/eg1gSr9DxbvxHXeMFj9ivkQsI10S Oqea4jkLPUY8PAXBPvwbvp8E0aWjHbb0ixwNKClO+JA6LS1irD6wQp2qR5J3twYOVB uyknHew/b6P+FzKJM1PRiytrVV5KOkUfoJZXomOAo43zhN9c2ht31ZM/cdSVFa1KKq YL1lj8umO1gNA== Date: Thu, 15 Jan 2026 19:20:00 +0000 To: Dave Penkler , Greg Kroah-Hartman , Michael Rubin , Dan Carpenter From: =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Cc: linux-kernel@vger.kernel.org, =?utf-8?Q?Dominik_Karol_Pi=C4=85tkowski?= Subject: [PATCH v2 00/12] gpib: Unify *allocate_private Message-ID: <20260115191925.52268-1-dominik.karol.piatkowski@protonmail.com> Feedback-ID: 117888567:user:proton X-Pm-Message-ID: f7b6386dc23f408010c30d0836186cf14870f562 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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. v2: Replace kmalloc/memset pairs to kzalloc. Signed-off-by: Dominik Karol Pi=C4=85tkowski Dominik Karol Pi=C4=85tkowski (12): gpib: agilent_82350b: Unify *allocate_private gpib: cb7210: Unify *allocate_private gpib: cec: Unify *allocate_private gpib: eastwood: Unify *allocate_private gpib: fmh_gpib: 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: ni_usb: 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 | 9 +++++---- drivers/gpib/cec/cec_gpib.c | 11 ++++++----- drivers/gpib/eastwood/fluke_gpib.c | 3 +-- drivers/gpib/fmh_gpib/fmh_gpib.c | 3 +-- 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 | 11 ++++++----- drivers/gpib/ni_usb/ni_usb_gpib.c | 3 +-- drivers/gpib/pc2/pc2_gpib.c | 11 ++++++----- drivers/gpib/tnt4882/tnt4882_gpib.c | 20 +++++++++++--------- 12 files changed, 52 insertions(+), 45 deletions(-) --=20 2.43.0