From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F030529DB64 for ; Thu, 6 Aug 2026 02:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785983970; cv=none; b=HyTtqyePifCBKq1S4d49RjTSCMMvUb45MxNVvOUgvnKT5rhM8goumcSrifxYCQmRgoedzQZPPmAf8VSbA1tFsMdsUZmo2Us+7jpw42A8HrVeMh+F88YUte4KQMyAVDy+428YqLSxODxNDznHE8JWCLUhubXWR1cWn5UWow0j5co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785983970; c=relaxed/simple; bh=xHHaH3i8lFBA3SCAkN81jlTaC5OsQciB0vsfjFmX/4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KsT0nYS4hEMdualWBlm9LBhKKKyzHsJmxy518CWY09wZvm5f5i/XCx3ClKvdXpMB369sifzhy1LQDAksNnd6L2Iu8UCWLIo9KLzKwr142SnltG5VmGIOMTGs/jL/uyZn2qpV+NKXp+zTtwsE1z9U8b2OmhuRaXiFbTKh6//ljnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ORfuh1if; arc=none smtp.client-ip=209.85.215.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ORfuh1if" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-cbb973e6749so2054546a12.1 for ; Wed, 05 Aug 2026 19:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785983968; x=1786588768; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=RE5+yp+EO4sGvggz/JN1MlhfuJ4Nn1zTwuioIoIeNsU=; b=ORfuh1ifc6n5a2c3O/NB4r0T60bSIm6ql4i+cE49DET7zLZOUG+OKXZgAW8sw+oTIB B7cWOD4FbmapdO7/81oKDiLFZmMOER4GLDMPuBN2thZ8R1ztdtLgvhbw7aQ7ZF23U2UT MRp2CpxL9oURn41bmN1Vx4cpN2q81H3dhbE7P14hljfcV5vyA7yCkDPughdaprOYGCfh yjbaoGtKnkypXLBhc/KtWL4cvue2x3XG+7DyUg+jBFt6MdS8fqb1GjFZoKEvLAwFW3Kv MsbHTfX32+wCqotxMVUjqXB/leIYKtoK0F0Pdjb4Xvr01Dk4N0VSNuw8aaLugh8XI458 eLBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785983968; x=1786588768; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RE5+yp+EO4sGvggz/JN1MlhfuJ4Nn1zTwuioIoIeNsU=; b=IE9OO66rXtJrsVRLVkzmNSQYRKvUBQnm20t3pUwICu80u2ucKUBPg5ExZ3arlCePh2 m60Rhh4ofmSV4fyS5a3N8au/gb4B9s4w6w7WObXrGCZcqxk266FAVKJ9S5C100nr7vAJ tjj8S9a/0QtKsziu8ARIOo4Tch/A1HQyY11yqKN7iacrLxsPWmonEh8bLW0lmINd4U3+ 4RMGxsiqNCWXbLjAtliromq81P5fL/Pgcz18qKfNG1APGz6BS/QIHfAuHakTGHstMhHJ NEeWI1ze9a+JCykiwvl4xTcyXWnEuuJixzQcLI7xsgmib9pNHw54sX5/yv7tew/olJPM Uvrg== X-Forwarded-Encrypted: i=1; AHgh+RqBVrn/bpKGCzAfMcUNuixHJQKCNthRXpcZAkzbkAgpAPofCsO7phMF7RZuq+6KxATCCoWVZpjlWOIZJdQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzqcBRr6nCJmFbd0ZiiJ315OAcSMFnq64+IcK8/yu/I+uplXKvh tRdiDZAFidChpwfOkkwALfDbyExpWmwFXCwhjWry2HUL0HfxZdNYjRKw X-Gm-Gg: AR+sD10FMQ4d98lUE/6n6h1jtizVRqYsNspAkkW9e3IiLm2pGPzmg35FNg6gqKc8Yt+ yJR22Kqh0OvXijYsgH69bAx+szmozJXv0446CUROv2j/OeJ3BHeAtAR0CZR/xkaM4ThIkiiy1q0 cImIxYpFxJ76994FHSGC8JI7DkGqscTO3tDHYUAcJE5hfrAI7DIYLJuOaAfOy62Ry604jprIOiy x23wMqWshAAtYcBQ9syu8f0eQtk8xsoMqqjxrGqO8zotdVX1nHCB6k+RF/BBXSDpcJqjAisMrR0 m55XIH2qJWhabfKs5nu3jWreBujloEVsO3WX7RPqKunWSkEzAM1F+orN0s0hfHBwcE6T2zEz92I Hhrzs+jURKiyv+ABL0zXxWOQh8sE+7sDJlwRkafcnzCkOxewhl3OimE/6L4l2gCFIVFrNTsB/Xn qA+I+IqdwCWQ2WnSb145ju1pFRoxUm95E+HY+W+J3jkDs8HBvMo4vzdB4F7KU= X-Received: by 2002:a05:6a20:4391:b0:3c0:b4f8:bbfb with SMTP id adf61e73a8af0-3cb85e5cb78mr14282873637.22.1785983968204; Wed, 05 Aug 2026 19:39:28 -0700 (PDT) Received: from ubuntu.. ([2405:201:8026:213e:3194:1e48:e141:80ab]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-315867d4929sm22404383eec.30.2026.08.05.19.39.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 19:39:27 -0700 (PDT) From: mdshahid03@gmail.com To: Jonathan Cameron Cc: Andy Shevchenko , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Ray Jui , Scott Branden , Broadcom internal kernel review list , Markus Elfring , Joshua Crofts , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Mohammad Shahid Subject: [PATCH v6 0/3] iio: adc: bcm_iproc_adc: Simplify probe error handling Date: Thu, 6 Aug 2026 08:08:59 +0530 Message-ID: <20260806023902.8608-1-mdshahid03@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Mohammad Shahid This series simplifies probe error handling in bcm_iproc_adc. Patch 1 removes redundant probe error messages where lower-level helpers already report failures. Patch 2 introduces a local device pointer to reduce repetition and prepare for subsequent error handling cleanup. Patch 3 converts immediate-return probe error paths to dev_err_probe() while leaving cleanup paths unchanged. Changes in v6: - Restore the original formatting in Patch 2 to avoid unnecessary code churn, as suggested by Jonathan. - Reduce indentation in selected dev_err_probe() calls in Patch 3 following review comments from Markus. --- Mohammad Shahid (3): iio: adc: bcm_iproc_adc: Remove redundant probe error messages iio: adc: bcm_iproc_adc: Introduce local device pointer iio: adc: bcm_iproc_adc: Convert probe error handling to dev_err_probe() drivers/iio/adc/bcm_iproc_adc.c | 46 ++++++++++++--------------------- 1 file changed, 16 insertions(+), 30 deletions(-) -- 2.43.0