Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp557112lqh; Thu, 28 Mar 2024 09:22:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWrYAjG9P/8OOrUHvG/VVGxuy2qVuNITcvV47bVKuDSUR1jUaB+07fa2Hh1S3P+QnwBFxJXMiA7S6b3WVqwAk81nDowDZcG2ehAWaJuYA== X-Google-Smtp-Source: AGHT+IFZwJPQEtRxShXrmJ7/O/3Zan+abymO7I3hI5T8/cnUD99BNkSWGYEaZ5aWjPbFw3rqwPzL X-Received: by 2002:a37:e20c:0:b0:78a:3d3c:ccb6 with SMTP id g12-20020a37e20c000000b0078a3d3cccb6mr3158206qki.10.1711642979715; Thu, 28 Mar 2024 09:22:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711642979; cv=pass; d=google.com; s=arc-20160816; b=HyoCA+04brUXPtmAMR784ndtzr7/nzgO4ckzCzeBtKnh++AG4nu5CMNEtDzjhYI6ic zx4nJnKcpmOLh/hqEOq/HL3n0r5MbYSNsrgJ5kbSVT1GF0ghA/OZoIlHKQ147NMO3gJh P6VcUyvf6uXYV5sq7Ad5Sz0BmU4mEZL3MUd62VDivGqmY7kjjdMWEymRz32J6yCpa9jz fhMP1dWgr8Nz245HhREh0CjsNwPx+2DV3ES8rIzTm7lP6EuB5PIc1yLpQvxT+fLxvKan t8sWG40k2VYRbQSQHQtCqtKj9B7Ya/LbJxTCJDho8wti5wO9LVbm4Jqwp5XBtT+L6Oj6 dAhA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=aujw6OcM5Ug+ScPrT4dQtkbt61trFql5Fhs+FzwKAF0=; fh=eLJ0ZkbGfa/aqy/dGSdsvXDgUwptbVw94nQm6NI/Hjg=; b=oNhmfU5apcBKQpJI0gxCGZ0cHdnGQZ48/Dx/E3ahxxuUKVl/RDRoiJUxAt7U5ZGj+w //g0H7TEN8cFY3gfJYtF+aSwbueOzs4y5AZZoKbXNRBmo5ua66MixrgN8N5aQEOiCMws cXcf9v51fnWr0LHIEo35lNP629sXrawmmUfMJ4WmpVgdWdWp0XdYk6kNDe1gPydfT570 wrO29tIy5u1pzrjszUVGiwVhGEHZ4i0Exma0nYhMbhHNqglP0WGTSzn+6dwXq443hp/g eVqlzB8WwytsMxhIdz4ErSKoMdFbQxLHLxFRqOliU/gB0zQWyqq23PXouIifGWs0CUCN XCEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYYkUpqC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dt1-20020a05620a478100b0078a5f6a4af2si1801680qkb.601.2024.03.28.09.22.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 09:22:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OYYkUpqC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123242-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 709381C2F808 for ; Thu, 28 Mar 2024 16:22:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A693F1369BC; 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="OYYkUpqC" 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 AE358132490; Thu, 28 Mar 2024 16:22:07 +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=PWwqTILxV5bVZ6i7qYlvQyK9qozWUmjaHirphH+jfIW9w7JADOH607Kesb0yVO4TWLvqLsiX3JuYvKRfjSPXOx5EvQ/GGNdl54MkK8/y515sBgz6EZ3oehzBuAb8R07WDUguDuaF83p5iWvOFIWkSIPjRqYa8/+GuokgBovbxdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711642927; c=relaxed/simple; bh=6tsedxfQG9tG36M17be5wbJpL1Spi7dRv5gmbuEJD+Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LVGzmE33OMef9etGZrxc2jgGbjmtdtMIsRLEI+Sz3N7SNaUfTSoggTetgkXq5grxLNivz4vHw4sJIRDOg+n9wyCI5gSawZeeylyTYLCG6MF0qHBqPa9187Y59wQTUjpar0f3Ugl0I6uAortFMUrtvQMNewILnRbg6BncnHmXsvg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OYYkUpqC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 43C2FC4160D; Thu, 28 Mar 2024 16:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711642927; bh=6tsedxfQG9tG36M17be5wbJpL1Spi7dRv5gmbuEJD+Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OYYkUpqCH14EUBTx2+4tYiHwgygBIu7w2q0qiE9adEzVCoyN/jYa2+sO9DhxVtAfz /Br3EJ4XHcW3sgCe89ETbauF6q070aoK9BtBk78Cg1AxNtkVkD3unOVhNV2/mnMxlT g+DdI+kYq8+Ck2xvECm6Y0Ak+swqzLQY0lNlz8/uyVcnmldUuHyjlhagZ5z7Oa9o+K +zAgwIDQzZm5yMzcGLnrlN0Pxnl0/BjRzWE5tpBI1YiuGC9iATYAolRo+u0oDp5GLq Vn0r9n2tOIQDV5fmqlcG+E3bHtI02yCDv4E9Mx9wJvzQaL9ugqtvo8kVqUccY4s2yj NW8fDGKWUfhMA== 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 36382CD1288; Thu, 28 Mar 2024 16:22:07 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Thu, 28 Mar 2024 17:22:04 +0100 Subject: [PATCH v4 4/6] iio: temperature: ltc2983: support vdd regulator 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: 7bit Message-Id: <20240328-ltc2983-misc-improv-v4-4-0cc428c07cd5@analog.com> References: <20240328-ltc2983-misc-improv-v4-0-0cc428c07cd5@analog.com> In-Reply-To: <20240328-ltc2983-misc-improv-v4-0-0cc428c07cd5@analog.com> 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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1711642925; l=908; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=vIAh0fbwcufBzWFPmQO/O8++O6EavSlE5C9AW8NDQh4=; b=fJtWRp8ioO/nf8wpJHWMQlpYTKwmEBGsC1Ob4PlDmd6sQbfq2yl/Aiw9upFN2CijYB9w5t0kt d6YW/P2DbUzDkwaZn15hxItqaE3EKqM9nYqAlo2t6COxS0qqm0axl2i 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 From: Nuno Sa Add support for the power supply regulator. Signed-off-by: Nuno Sa --- drivers/iio/temperature/ltc2983.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/iio/temperature/ltc2983.c b/drivers/iio/temperature/ltc2983.c index b4a8ca36458a..ff7f0829b575 100644 --- a/drivers/iio/temperature/ltc2983.c +++ b/drivers/iio/temperature/ltc2983.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -1574,6 +1575,10 @@ static int ltc2983_probe(struct spi_device *spi) if (ret) return ret; + ret = devm_regulator_get_enable(&spi->dev, "vdd"); + if (ret) + return ret; + gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(gpio)) return PTR_ERR(gpio); -- 2.44.0