Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp591724rdb; Tue, 23 Jan 2024 08:38:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3duvmmGmOcHizrfVyiR8YFMBvaEWlvIV4yXLqjBjlCfNj2O5Dkh+2WLhgd/RsVTr81d88 X-Received: by 2002:a17:906:1191:b0:a2a:6ff5:b111 with SMTP id n17-20020a170906119100b00a2a6ff5b111mr96413eja.149.1706027894210; Tue, 23 Jan 2024 08:38:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706027894; cv=pass; d=google.com; s=arc-20160816; b=Zb0jvtMaeVIH9nP6ekfBCOV+qmTSQhIq10vE9k9ZPzTq9YLHyrft74w6RdyzlnutKn n/MpTYf25vo8vHxNv1wWBxJrm2syJ1Qr60r3J4YqVM1L4iG/stxwHoUPmnUmml23UTHa pIV37bMSSwbS4mZh217fUdP3i9FtDgoC6Z2hRjjIlVZDpsXeqJ9TNv33Ks6yCP1Ww0SG xuR0HdtGXCLMLvDDPl26sl66FJgp86h7JKEQ0KVAZVJ1gegCpRcpH72vag70dLfAUPqI AM3PwMEgDoEswQ/+7b0+XCQizVgV++wGF/du8V54hMiwbNytWGfqG9QfTrVwoRlcIIws jpVw== 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=q7pRp5x0RG+L6or32Q9nmMCN27zczX+N7SM2pF7W3VM=; fh=pozOWq+Llr4uSsAlLarsoaPJ+QQ4TuIyCJyc15dU4WI=; b=G9CXULP9aoUT6Pbl8OMj9agNmwCU9vFPP1tea6/zZZudEzbY/f/6ier7O8Gg6gxfx/ S6fXkXzpWPILK1fQQSqfq6qlsP8NCZyToRYbmZbd7zLSjJBPJdZcXqd349ve6vHTnGZ/ 23ON63EMHopfjk75Qu9+77DRjfbZisweEw3qDG+XTkhAx3OfIu3I82K+gE70nnAfB9c0 cHvde7qXT7SFAjc4sawN1Y6ud0OvCABDnMH2xk66dHupjRZxksL2ZFlsgz1PmMgIqF7e gsl5B5R8tiid2a7zlofM0XJmt7Q4uSuYYQhpZR5/1pIoPAgPKkOAQY42DOOmc5gcaPIu 6Esg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=V5Zeaq+W; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-35658-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id hh18-20020a170906a95200b00a2ce4aab426si10957647ejb.761.2024.01.23.08.38.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35658-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=V5Zeaq+W; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-35658-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 75F2A1F255F0 for ; Tue, 23 Jan 2024 16:38:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46C4080049; Tue, 23 Jan 2024 16:37:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="V5Zeaq+W" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 C49487FBA9; Tue, 23 Jan 2024 16:37:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706027825; cv=none; b=qIyq+a8vRJq7JY40EXciq4cYeDZd2fsxeyeepNq1C+AQALEiTpElLUgY4pYr+lbsaOoP8+LHRT07SrnhlmM7wMZciHaBGs4bJkduLXZa5hT4OPT0SXd8yjWJ6swWULVTCKfAb6V7mVH4w6npiGae/3kZmcXo5h3g0S5XdzLwZmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706027825; c=relaxed/simple; bh=pWH8NAHtrCvFVSYAPVsf9lKe7zVZF7vWQZ1xReqHAuY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AQ84sQhtPJYqNoMslH2dP/qsQqrHwHyg+/qHGoh0I3u3kgqMLEpTqUTtmY976Ml1mJ1sq8eLBfdIt4YEkn1PdUumHJqIxJwPOqy5zLcSkEkriN550Y2XhjTSE+vZNUa7xefKZ7bLlng3lSyhwXOZ1jQbdbiXPL4xrxPVL7DxqJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=V5Zeaq+W; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40NGasLk077073; Tue, 23 Jan 2024 10:36:54 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706027814; bh=q7pRp5x0RG+L6or32Q9nmMCN27zczX+N7SM2pF7W3VM=; h=From:To:CC:Subject:Date; b=V5Zeaq+WPMJp9Zw0v/NXFVWhBsUpMgB0ankkefCZPSaH5bKFd156fx3V2SYT/9v/4 /f2ckNyaCkNIAxuJ2PA5pIlxZeN8HI963n5y3HLyXit7jKIWkuNtn8Ea9v9jslLRvS AfOvNsoOjqYdf0jEFKwIhydGWeamoblA5Ph5C79I= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40NGasnq000545 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 23 Jan 2024 10:36:54 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 23 Jan 2024 10:36:54 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 23 Jan 2024 10:36:54 -0600 Received: from lelvsmtp6.itg.ti.com ([10.249.42.149]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40NGarrm123403; Tue, 23 Jan 2024 10:36:54 -0600 From: Andrew Davis To: Sebastian Reichel , Support Opensource , Krzysztof Kozlowski , =?UTF-8?q?Pali=20Roh=C3=A1r?= CC: , , Andrew Davis Subject: [PATCH 00/21] Power supply register with devm Date: Tue, 23 Jan 2024 10:36:32 -0600 Message-ID: <20240123163653.384385-1-afd@ti.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hello all, This is a semi-automated series converting several drivers under power/supply over to using devm_power_supply_register(). The more trivial cases are first, the last 3 drivers needed a little pre-work to convert their IIO uses over to devm before power_supply_register() could be switched. Thanks, Andrew Andrew Davis (21): power: supply: da9030: Use devm_power_supply_register() helper power: supply: da9052: Use devm_power_supply_register() helper power: supply: ds2760: Use devm_power_supply_register() helper power: supply: goldfish: Use devm_power_supply_register() helper power: supply: lp8727: Use devm_power_supply_register() helper power: supply: lp8788: Use devm_power_supply_register() helper power: supply: max14577: Use devm_power_supply_register() helper power: supply: max77693: Use devm_power_supply_register() helper power: supply: max8925: Use devm_power_supply_register() helper power: supply: pcf50633: Use devm_power_supply_register() helper power: supply: rt5033: Use devm_power_supply_register() helper power: supply: tps65090: Use devm_power_supply_register() helper power: supply: wm831x: Use devm_power_supply_register() helper power: supply: wm831x: Use devm_power_supply_register() helper power: supply: wm8350: Use devm_power_supply_register() helper power: supply: da9150: Use devm_iio_channel_get() helper power: supply: da9150: Use devm_power_supply_register() helper power: supply: rx51: Use devm_iio_channel_get() helper power: supply: rx51: Use devm_power_supply_register() helper power: supply: twl4030_madc: Use devm_iio_channel_get() helper power: supply: twl4030_madc: Use devm_power_supply_register() helper drivers/power/supply/da9030_battery.c | 6 +- drivers/power/supply/da9052-battery.c | 4 +- drivers/power/supply/da9150-charger.c | 72 ++++++--------------- drivers/power/supply/ds2760_battery.c | 4 +- drivers/power/supply/goldfish_battery.c | 24 ++----- drivers/power/supply/lp8727_charger.c | 35 ++-------- drivers/power/supply/lp8788-charger.c | 21 ++---- drivers/power/supply/max14577_charger.c | 6 +- drivers/power/supply/max77693_charger.c | 8 +-- drivers/power/supply/max8925_power.c | 36 +++-------- drivers/power/supply/pcf50633-charger.c | 23 +++---- drivers/power/supply/rt5033_battery.c | 14 +--- drivers/power/supply/rx51_battery.c | 57 ++++------------ drivers/power/supply/tps65090-charger.c | 18 ++---- drivers/power/supply/twl4030_madc_battery.c | 59 ++++------------- drivers/power/supply/wm831x_backup.c | 13 +--- drivers/power/supply/wm831x_power.c | 24 +++---- drivers/power/supply/wm8350_power.c | 29 ++------- 18 files changed, 121 insertions(+), 332 deletions(-) -- 2.39.2