From patchwork Fri Jun 21 22:11:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lechner X-Patchwork-Id: 13708116 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4C115C2BBCA for ; Fri, 21 Jun 2024 22:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=cmzSXNP21R075UYu7ymlgDX9W/Dms83ZZmrfejrgjMM=; b=yBDkrXqYxwxzCaCK3eQGB9+j3u mHnQ2QOcsr7funDbWOFyZ8AsiVVrruF4rN+MUKhs6uuO8ZVurVbhuY18pl4OQ5OtnqOdf7StPQ16A gNWYuCNGiIDzmrb8jZeOY4gftpeEuCdhIlwH/ZmNZvsklO/L4GZ5GfK2SKIPOIuHOfmsmD1qcKDBb CyAWORbjfpTgEothvwZ/0Sw5vbPvOD3oW4Z8U87InSd+YjK49mrSqMRSWd48NUiwBlUapb3G/Igcx 3QCHBikeOow83DKY9gAmSOc/0AnDzVhCVpq0vHzVW+OiTbV99b6QSwxrCRUKH62sbdJCkg2FR63AH MPPVlDtg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKmUL-0000000Ai59-0rsu; Fri, 21 Jun 2024 22:12:09 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKmUG-0000000Ai2F-14qi for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2024 22:12:06 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-5c1adbcaad3so1122580eaf.1 for ; Fri, 21 Jun 2024 15:12:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1719007922; x=1719612722; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cmzSXNP21R075UYu7ymlgDX9W/Dms83ZZmrfejrgjMM=; b=m8pJLNUgZDgb6lJ6YvaTVZYD2oBzh/zSqSrT02Jn61qkoYto866DC3OZkZYCnz9PMU 5fymayguW0kHyQV32gOh/97aoI2KEqIO0T6kL+oQCnVzCL7v/kwMB7yodrzHAuWyJ7Xn T74eeSnHQcW+uv/hDVE06nNnXPt4oEHQb1g2Qh86O58iTA/YB7YwYEBfPzyFp2wBXGLY +pBBtdggUc8+sEeprWQGy7I5NZ+0Q4/m+JcMJtxzodSp4Db9/xJo3GtoZdGKoqOU/VAt F9dLc8R20Odfm3AIOd5OPyFpYaBznyzIID4lBlaguRlOGsYYadh/t1q8g8uyCyHhvumA /3qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719007922; x=1719612722; 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=cmzSXNP21R075UYu7ymlgDX9W/Dms83ZZmrfejrgjMM=; b=ZeX5dcwkcw1OPbFFUdiOjjBTxuSvwjskk/GxeKWoowG7N5yRS612Q07Zu59xBNLx3p 4G5z9lgNYZGNuXH9F6dyE4rf9avmC0u2nBtK/kEFD87XqUSRD7nN2MOba7qXaYW04E8H RH34hWMFf4BLO+Pv0qTsztKwF+PLSpgK89B/De2n+/kZwNDS0PmY8cYpmYqrm0IeWk71 j6jvtgXrvCumUzlsTmFJvKoJkdstIj+TMM5443a9G6rjBlkTgAjEQJWMUtL2TDKVQIqE iPQWxz9AbfQwOjY0CaHuCP/TfVl5DfnG827slRrqVb4K0+4TZC/mUB3MI7bFgkDgmCz8 i+JA== X-Forwarded-Encrypted: i=1; AJvYcCWKA4LeS02pzEveWjIJSxzoz1Dh055e1nCZggAyJPftQ+PVJUgPuCNpK+0fZV7gqi4nt6kyXXRmgznpb7DH0xts0kE6iGhBrXcjOAbxqtVvNAzDPMU= X-Gm-Message-State: AOJu0Yy6lZJGyolgoFku9C5kif7wgJLO9/YL+NtTUsDtFpiuDkG+wPeT AlkAfiFcrQhvDUe/ouAKw7VEo9aLM7bNOrPgrdj53kGPdn6DIcbU6sj8k40KIL0= X-Google-Smtp-Source: AGHT+IGwLaxf3WWNTpwyB7Womx7K1+1kbrWpsLo0q6oK9vgQPFQAtCkWtcmH1xRg/3vOcNKhpv9pRA== X-Received: by 2002:a4a:a584:0:b0:5ba:d785:cfe5 with SMTP id 006d021491bc7-5c1e2690485mr557577eaf.2.1719007922520; Fri, 21 Jun 2024 15:12:02 -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 006d021491bc7-5c1d94fb2a4sm329837eaf.10.2024.06.21.15.12.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jun 2024 15:12:02 -0700 (PDT) From: David Lechner To: Jonathan Cameron Cc: David Lechner , Joel Stanley , Andrew Jeffery , Liam Girdwood , Mark Brown , Andreas Klinger , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 00/10] iio: use devm_regulator_get_enable_read_voltage round 2 Date: Fri, 21 Jun 2024 17:11:47 -0500 Message-ID: <20240621-iio-regulator-refactor-round-2-v1-0-49e50cd0b99a@baylibre.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240621_151204_479077_39320C0A X-CRM114-Status: UNSURE ( 9.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is the second round of patches making use of the new helper devm_regulator_get_enable_read_voltage() to simplify drivers. All of the changes in this round should be fairly straight forward. And as a bonus, there are a few patches to get rid of driver .remove callbacks. --- David Lechner (10): iio: adc: aspeed_adc: use devm_regulator_get_enable_read_voltage() iio: adc: hx711: use devm_regulator_get_enable_read_voltage() iio: adc: hx711: remove hx711_remove() iio: adc: hx711: use dev_err_probe() iio: adc: ltc2309: use devm_regulator_get_enable_read_voltage() iio: adc: max1363: use devm_regulator_get_enable_read_voltage() iio: adc: ti-adc108s102: use devm_regulator_get_enable_read_voltage() iio: adc: ti-ads8688: use devm_regulator_get_enable_read_voltage() iio: adc: ti-ads8688: drop ads8688_remove() iio: dac: ad3552r: use devm_regulator_get_enable_read_voltage() drivers/iio/adc/aspeed_adc.c | 30 +++++----------- drivers/iio/adc/hx711.c | 78 ++++++++++------------------------------- drivers/iio/adc/ltc2309.c | 43 ++++------------------- drivers/iio/adc/max1363.c | 28 +++------------ drivers/iio/adc/ti-adc108s102.c | 28 ++------------- drivers/iio/adc/ti-ads8688.c | 59 ++++++------------------------- drivers/iio/dac/ad3552r.c | 28 +++------------ 7 files changed, 53 insertions(+), 241 deletions(-) --- base-commit: 7db8a847f98caae68c70bdab9ba92d1af38e5656 change-id: 20240621-iio-regulator-refactor-round-2-28a1e129a42d