Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp671321rbb; Fri, 31 May 2024 14:20:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3uWg5DNszX6MFmnpLdx95iZkKAItvnpcOwA8MZEF6XzZl7nCBoKM7crgaM/2KZDlFJY0Y3cgvsV3qvzcnnls2IWlvN6MZ2mHH5opOTw== X-Google-Smtp-Source: AGHT+IEC8J8F1B/pOnPuwIsFtK3jxDLt6Z3afVPAPrvOFr4u5RpxIFSqUJ2rCMR2bCw4QVBwUwRo X-Received: by 2002:a17:902:d485:b0:1f6:5ae:ceb with SMTP id d9443c01a7336-1f63709beabmr35072385ad.43.1717190408304; Fri, 31 May 2024 14:20:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717190408; cv=pass; d=google.com; s=arc-20160816; b=l/hFQANPlDLppScbROHf9Phk2ZZri8MuLhNvyiEmwTLm9J25s3LlvyxCG1BiEShoKP sm2v066T2PUoMV+042wQ93XH7zsFRPc3hqDEASTFkzzZGTIwiGBLcn3IK33lBCQOOjCC Ky0/tvOf4FiGN8VsGLY9cC+7QjROiGEMMno3kecBfbsuweCBIh1s6w2/7RcoIzegiXTd nM7n9DH/9tT7baa69Ctlm1vaY9u7nS5PCpMCuyaC656YzPIb/bfTAy6vsG7Imllj9J5n SPxSIX9+XZ1D1TNF3TXdJaGYWdixltO00Cj99QBsg5OwVjVDHtDsv1xIUbjvTk2y4Amz DyNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Hf1Jh1GnZHozNnd+M9c3JoKjbK3zJd+Wb/SAaafdMJI=; fh=7HOKtOcQ/mB5GKofaZhyyFrQjloF/Sa7Vj5xPqkxdZI=; b=ml77U7htAKUJEslE44Wj0I1xi+LxAxyEKlJjkTIBLm09C3D6T8FxK3GCDUe42hSKTA ArJ5CNz4LIGMhAVVB9So+PGxlQ3ZtesnFn+eGxEyD8cMwktvPK4sIzRaqjkmkN0qvFz9 8UWW6+oyNId/sBwTbTixY+h7U6eZwYYrm/ok6r2J9f84LmEBQSxPus5Y/qWWYD4vV+6Z UhBTHjdjTpK21+82C0H3aODG749BUvxXP7SZW/2/s1e2FwbEscVnI16f2zQgz6JPDkkE vStVW2dLgLDvOjuq8ASFPm983hSG4xZbBokwGnXsQqCVTf/OdIxnxPrgN29A/LB930QE oQWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=nzVkJujF; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-197496-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197496-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f63233ed30si21817365ad.39.2024.05.31.14.20.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 14:20:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197496-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=nzVkJujF; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-197496-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197496-linux.lists.archive=gmail.com@vger.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 E3A182834AE for ; Fri, 31 May 2024 21:20:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68EE979B96; Fri, 31 May 2024 21:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="nzVkJujF" Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 4C56C28F7 for ; Fri, 31 May 2024 21:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190386; cv=none; b=PCtAQlgFwX7LO2Vy6uPUtYgBud9IZbeJniGTl4D6wBRaCH6SJgsXIomKFmpENNh9gs8GztVhGTRKiqZfjFlQnyTs9o6ppBNItNuflBqGvHhbTw9lAsxn4T5nPCHFD6GaP+NoKV31CiLO8/CrVQaA6GmQNbJTr3ZWWS1xuE2FA+g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190386; c=relaxed/simple; bh=ek78r9i4xgfXrjMsbmfUbdTIlxlFPKdQJjlSqdM9BrU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=mz/4fXQX1YgGjtg3yJstfzx4VLYkQ8CSJlPNBkLgg/90wLzjMP3+y7Sf1GXbe/3DLBfCDVEL+aB5JupR4GmfQ1JWXmldI8CnZwFDQRswupIWZvvs9MO98ZMFczyUYbyfdumUuA7iedUyrmsrePY1hQOpBtyf4s7LeJvyWJD/Cms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=nzVkJujF; arc=none smtp.client-ip=209.85.210.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-6f8f024a75cso1459365a34.0 for ; Fri, 31 May 2024 14:19:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717190383; x=1717795183; 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; bh=Hf1Jh1GnZHozNnd+M9c3JoKjbK3zJd+Wb/SAaafdMJI=; b=nzVkJujFWF4xtO6+SPV9p5TowRucecWXsNX6IMRupBOg7G2z5Sdxj/Z/dOulvSbuGk +nUWW9NCeU42c5DBekY6+2yhpu//vA17UT+CfAA0Ai0mI/bz0toXXfyUrSOhDKOHgh2+ nalJlhrzNQhhI7jo3hJ2YKlt5LYVRs2d9TMMY68m5KodsUjXw3SzCtRAkc3HB1mWSXTq fRCC338jyqFuURNhmG4/0YkzpFpZIWDoKamvwCp6ornqpR72jAdoqGWAE3Q5n6xuTsP7 HD06En9TCqfq5gj0sDhzYF4xcj89byoEQKFYumITSofIWTENHOIiGux5nOjDC+/EOLCq KGfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717190383; x=1717795183; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Hf1Jh1GnZHozNnd+M9c3JoKjbK3zJd+Wb/SAaafdMJI=; b=ftWzN95p4GtRDtE445Z9lAD+FJvIg9TUC4zIP8aLF+eKWizU9Zi1ZaNOREQpFVj7Jr 614hv/InPDALzh0rUVkxLYy8J02v9cFvmc8TKixCqzvaTl0jNWEQr2wV01vduTEbh9wW V7NdYOonuH/ZxQD0aef4HpqsWFSrEh4QRCNf/uGiYkWTUDSuNLsk4lQG2X2Wxe3WHRRc 7rG89xCd8JQ5uKtkYo5tu2tITbSzn23M8Scz0Ijifv6UpKJ5tWy9xs8PF9UOb+exPLCU Tfm91Uo1aWpgQeih0sgRuRlcpTmPE7mqVCGLaWo4WCVUObna3knZ89/QkflSBvkyzT23 hZbw== X-Forwarded-Encrypted: i=1; AJvYcCV1ZGDuvP9kDD/qpBo3gaW/aVFd2hBVp1ea22iEh1dJ8o+uHPtpO7YclpVV5T5qaP5kuK/OaxdtbAgEsVZU+i3Ne/aanCm38Ji6VKO+ X-Gm-Message-State: AOJu0Yy1Eausehd3xGlSjtSFkJre1m/oW2Q1iYqYJuN4UcZzPZoXfrQo QBDBGBm9poKfQQ9cGCAgWjf5i9zmhZGh7z8p7VURd7jyTut1j+S98VzCFcgCYCU= X-Received: by 2002:a9d:6755:0:b0:6f8:d23e:78e0 with SMTP id 46e09a7af769-6f911fc9917mr2899040a34.38.1717190383278; Fri, 31 May 2024 14:19:43 -0700 (PDT) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-6f91054f6c5sm470176a34.38.2024.05.31.14.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 14:19:42 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , Marcelo Schmitt , =?utf-8?q?Nuno_S=C3=A1?= , Michael Hennerich , Mark Brown , Liam Girdwood , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] iio: adc: use devm_regulator_get_enable_read_voltage round 1 Date: Fri, 31 May 2024 16:19:31 -0500 Message-ID: <20240531-iio-adc-ref-supply-refactor-v1-0-4b313c0615ad@baylibre.com> X-Mailer: git-send-email 2.45.1 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" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit Following up from [1], this is the first round of patches to convert the ADC drivers to use devm_regulator_get_enable_read_voltage(). Some of these are trivial but some aren't so I'm breaking them up into smaller series to spread out the review load (and my work load). [1]: https://lore.kernel.org/linux-iio/20240429-regulator-get-enable-get-votlage-v2-0-b1f11ab766c1@baylibre.com --- David Lechner (5): iio: adc: ad7192: use devm_regulator_get_enable_read_voltage iio: adc: ad7266: use devm_regulator_get_enable_read_voltage iio: adc: ad7292: use devm_regulator_get_enable_read_voltage iio: adc: ad7793: use devm_regulator_get_enable_read_voltage iio: adc: ad7944: use devm_regulator_get_enable_read_voltage drivers/iio/adc/ad7192.c | 98 +++++++++++++++++------------------------------- drivers/iio/adc/ad7266.c | 37 +++++------------- drivers/iio/adc/ad7292.c | 40 +++++--------------- drivers/iio/adc/ad7793.c | 24 ++---------- drivers/iio/adc/ad7944.c | 62 ++++++++++-------------------- 5 files changed, 77 insertions(+), 184 deletions(-) --- base-commit: 15895709c7dc5f1a8b53b3564fc2bed724209611 change-id: 20240531-iio-adc-ref-supply-refactor-93f962d40c23