Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp557005lqh; Thu, 28 Mar 2024 09:22:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWXdVWI4f/Ep2dYWxPCAmqLxZyDEZi/oDlItqD6J5AsaxUke1qX573yBXiLsH/mruslf5auETYyYC7hu8ESXPmUAEWPHgP85xqvTySCYg== X-Google-Smtp-Source: AGHT+IE3RL7f6dS5IQHy+ZMnlsWvhYHjhGNwELEaSm7owXZ2rXrwTMoEyI0kiexsxEahYEhmsU1D X-Received: by 2002:a17:902:6546:b0:1e0:9da6:1765 with SMTP id d6-20020a170902654600b001e09da61765mr2863054pln.46.1711642970088; Thu, 28 Mar 2024 09:22:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711642970; cv=pass; d=google.com; s=arc-20160816; b=nF8zfLGoLPJH+YgzAulIyhkfC0NslRfIb2cI8gNDy2+DE7bAIiTb1NyHctbN1QEx4M gLWsuwQpikWPqT5hFJOnZnA8OZYbSKJLiDpz32mb4CE3FbotPXEI0hMMVNGt6V5sV69B pexupkSFiJe+QSONrP+tgVMz3xpP20RBZBTi0K8oPjYmIZ3xK0zBwrIWkPafoWD+/n2w FlL4SFReG9mNh6aXxMaZwi3hEIc9ZnAi1aWKvmiZbElk2gGfQNmcMfEtTHSD7XrttKgZ q+PWELMIKESvFMejDFly7MSJCM+fIMP6l8rMKG7rAjf26StQit2Fa49mCihy0oFfjrpP yX4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:from:dkim-signature; bh=0MgBc0IQhkAvkuQ9DiZ0at/rnSBrXKczHFtt9ymbAfU=; fh=cZ2AoqSBBvD0QtIHs7KW4SpmNKT4rs/yAXJ1olw4PX0=; b=VMQQeGlEChkTqtoj/5uPV0ItidcA+9hjRk2cAUWyRfAz6Jxqz7FNhwbNduGsc1YV0p wH28MlguUmbZ54QLTY/y8aqsVQLCqMyUGUvfB/fhsXRdlwW4cIfzmTQ9+LU0dkocdDzS Nisonn9ZE1S8tBMMBrXWOyNgsrB6c7db4VuhQUSmHWhO1WXZgDUwpE3cMbPuOfUqX/rv 00+lSaoBOx95LGurEE4tHmKAc27AfgiVieaNCO6Bq2PNzzTuZy60urvEAXIMJIVtsbbE YTsahDMd9xITlhI7s/26CGBuLvSynZxeF5gHFtEsy96HXrfIESjXe6B6uRVOvCmq0xsl 4UfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fgmsvwWr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n13-20020a170902e54d00b001e0934778e2si1807211plf.367.2024.03.28.09.22.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 09:22:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fgmsvwWr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123238-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BFE8A298E2B for ; Thu, 28 Mar 2024 16:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 449B7136666; Thu, 28 Mar 2024 16:22:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fgmsvwWr" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5463C13118C; Thu, 28 Mar 2024 16:22:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711642927; cv=none; b=WARF9FuMGuiAibB0y5nVZfmzmloZVBsw+LRu3N3DuN4cl4MXhwhBn15GinxOM6dMyOSdpMTbI4q+RQrTg00akeN3bDjy+LvpTXsfA16Ztpu6F/hoqBRvBzB+K11hM2E0X5f2Ud4jy6WPy9hQmInE7JOJ5qLwBHWWx+oDcSB93UU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711642927; c=relaxed/simple; bh=zBhogSNxNauQDqG7V2YIRjTJ7pHNH4Qj7ezF+eXpGV0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=Q8YeqUBfWnmaOw5hiBvd2CRwZdkfCb9WWSaKCInVRCh105c7Iyhw0nzqos6uIWNAifQNpZa7WUVp3BoGD+0ssJHHHpqaBds//cyGuLx451fF7FdMWDSXUkFpAzrCuCYlPS+J7wWXGzunyDjeE9seYOIwtF0ZEVTnCptGdApvo9Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fgmsvwWr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id C1808C433A6; Thu, 28 Mar 2024 16:22:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711642926; bh=zBhogSNxNauQDqG7V2YIRjTJ7pHNH4Qj7ezF+eXpGV0=; h=From:Subject:Date:To:Cc:Reply-To:From; b=fgmsvwWrV1E1iopjBIDtM6GXoD/bXq6DjZcgg4tJIKe5jVKtKkqd8zIryOLmjlPPg Tz8qIAzrADFTWTQERC8km7SoLV4d94tNWHMjPldiZ7H1LwDqYSE2lnR38swF8m59gE NVi5p6UbeByDgHEEdKpIFlYuKGi0K0t8Xks9dPmWGnNI44yoUGXhIhv64X7KzQi5y8 ZzeAhppoNzvCqaqpCp9/UVuYV9auXNjKYiylbyNJFLYoioRIk7Vaq4vbwCDBg/gzMS R7Qx0zn1AD1vCGMkMsWEK2vvk1dfKPqly3ZQKAIcr69iRCQR00eQ12piuTWbjCFAu4 Nnq4BoVaTZ3mQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A0762CD1284; Thu, 28 Mar 2024 16:22:06 +0000 (UTC) From: Nuno Sa via B4 Relay Subject: [PATCH v4 0/6] iio: temperature: ltc2983: small improvements Date: Thu, 28 Mar 2024 17:22:00 +0100 Message-Id: <20240328-ltc2983-misc-improv-v4-0-0cc428c07cd5@analog.com> 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: 8bit X-B4-Tracking: v=1; b=H4sIACiZBWYC/22Nyw6CMBBFf4XM2jF9oFJW/odhUYcCkwAlLWk0h H+34tblOck9d4PoArsIdbFBcIkj+zlDeSqABjv3DrnNDEqoUih1w3ElZSqNE0dCnpbgE7aGSqs raZ6yg7xcguv4dVQfTeaB4+rD+zhJ+mt/PS3k317SKJCEucirJeE6utvZjr4/k5+g2ff9Ax5YN Du3AAAA To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: =?utf-8?q?Nuno_S=C3=A1?= , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Olivier Moysan , Jyoti Bhayana , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711642925; l=1447; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=zBhogSNxNauQDqG7V2YIRjTJ7pHNH4Qj7ezF+eXpGV0=; b=/wppr/f3yBPWBOrF9QxOnuWQh+UT4MUEz7k/gAKAKugqeXNaT5a/rg5waRpDGfNPv5Wo39m6h TQrgwlv1OSrC3RjIrcwWtqMdCtOj678YLeGrOs7R5E5A3eCH+bxU3A6 X-Developer-Key: i=nuno.sa@analog.com; a=ed25519; pk=3NQwYA013OUYZsmDFBf8rmyyr5iQlxV/9H4/Df83o1E= X-Endpoint-Received: by B4 Relay for nuno.sa@analog.com/20231116 with auth_id=100 X-Original-From: Nuno Sa Reply-To: nuno.sa@analog.com The v4 introduces an new dev_errp_probe() helper to deal with cases where we want to return error pointers. The refactor in the IIO ltc2983 is an heavy user of the pattern and was the main motivation for this. Also added two new patches so we have three users of the new dev_errp_probe() helper. --- Changes in v4: - Link to v3: https://lore.kernel.org/r/20240301-ltc2983-misc-improv-v3-0-c09516ac0efc@analog.com - Patch 1 * New patch - Patch 2 * Use dev_errp_probe() instead of local variant - Patch 5 * New patch - Patch 6 * New patch --- Nuno Sa (6): printk: add new dev_errp_probe() helper iio: temperature: ltc2983: convert to dev_err_probe() dt-bindings: iio: temperature: ltc2983: document power supply iio: temperature: ltc2983: support vdd regulator iio: backend: make use dev_errp_probe() iio: common: scmi_iio: convert to dev_err_probe() .../bindings/iio/temperature/adi,ltc2983.yaml | 4 + drivers/iio/common/scmi_sensors/scmi_iio.c | 45 ++-- drivers/iio/industrialio-backend.c | 8 +- drivers/iio/temperature/ltc2983.c | 260 ++++++++++----------- include/linux/dev_printk.h | 5 + 5 files changed, 151 insertions(+), 171 deletions(-) --- base-commit: 27eea4778db8268cd6dc80a5b853c599bd3099f1 change-id: 20240227-ltc2983-misc-improv-d9c4a3819b1f -- Thanks! - Nuno Sá