From patchwork Fri Feb 23 16:21:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Dooley X-Patchwork-Id: 13569475 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 8D2F612E1FC; Fri, 23 Feb 2024 16:21:46 +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=1708705306; cv=none; b=BMx5jWSx1sq/gHyEyCQ9joUeX2CkunDlJVyIzgxA5575C7DVKMk3ne7+JRbHj2Oy7HYXEY4IpjzBTrkT7LuBT/1jSpbaRA4fXuZ1dMfsgEZXuxZJ+ZisHpy0BAb3TJN70NOjfoaAv56RNPmntbrJPFIkgdc02+Nas4hgiLSqiVU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705306; c=relaxed/simple; bh=xpFapP+t1GY5qR3wsOV3Nl7p1ssqEBrzSJNPZBMtc1s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cFI/fH2J9L6lrHvDw4evAMNEStBs44EjjdJi5yEbVnVozLJWzzF0h6qIglo28+V4ozpLnnS0QP599ENMczuOr3XDGgkO+SWQn0tIGYOFqkHSgmAPb+Jp7rN+62V5UFLPIHQLgLE8YJFXqSsJTIgFrVCbZbqcHX0voChg2qj752w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nEGjQbLT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nEGjQbLT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5718C433C7; Fri, 23 Feb 2024 16:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705306; bh=xpFapP+t1GY5qR3wsOV3Nl7p1ssqEBrzSJNPZBMtc1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nEGjQbLTNrvj5xvemmvu7cU++u5DUAhThDVhFtJAbvNhZh52GS0dWxyDGbNRWF87n HUEZZ0CYQelFRrFeco9tC0pUYsbfvHrGeINupOZ4RbLwjB64cafgQK80qN2WNFRiy+ LtjVnEKE08bclZyqYV7k/tE/myoP8NSF+grve0Chg0R99hyUUO+U56UQcD06eOVKeP oD9XQ4jpIrzi/VwbkEiGpJ/zCAarWralV7pF9zv8pnmG9wj7zpt9RMx+3s1vt2OOHr DjAB5xcgFcZIQ3BtK0QCN5/YZzIDwmRphV+zNXl0t+z44W1t58QtHDnHMyQipchf2q WWWXnG41ER2rw== From: Conor Dooley To: linux@roeck-us.net Cc: conor@kernel.org, Conor Dooley , Jean Delvare , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Zev Weiss , Patrick Rudolph , Peter Yin , Alexander Stein , linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Naresh Solanki Subject: [PATCH v2 3/5] hwmon: (pmbus/tda38640) Use PMBUS_REGULATOR_ONE to declare regulator Date: Fri, 23 Feb 2024 16:21:07 +0000 Message-ID: <20240223-catnap-companion-c42fdd8ad110@spud> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240223-moonrise-feminist-de59b9e1b3ba@spud> References: <20240223-moonrise-feminist-de59b9e1b3ba@spud> Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=927; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=1ZtfL4H/Opueo+tkLhUryZdEDy0uFp+4wOJDc4cuTnE=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jv6QmRr4IpfD1GNPlhl7Sechbpbey7VHl657v/pEP esyjUWNHaUsDGIcDLJiiiyJt/tapNb/cdnh3PMWZg4rE8gQBi5OAZjI0XqG//6vT5qbeOaEFHX0 H2d9cPjxYteDcba/Gi7dfzh33x7HgAqG/z77DgnPX/j+RRTXP/VFv3h7ui5nr7+8Nmb9S2ET/qv +h9kB X-Developer-Key: i=conor.dooley@microchip.com; a=openpgp; fpr=F9ECA03CF54F12CD01F1655722E2C55B37CF380C From: Guenter Roeck If a chip only provides a single regulator, it should be named 'vout' and not 'vout0'. Declare regulator using PMBUS_REGULATOR_ONE() to make that happen. Cc: Conor Dooley Cc: Naresh Solanki Cc: Patrick Rudolph Signed-off-by: Guenter Roeck Signed-off-by: Conor Dooley --- drivers/hwmon/pmbus/tda38640.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/tda38640.c b/drivers/hwmon/pmbus/tda38640.c index 09cd114b1736..c31889a036f0 100644 --- a/drivers/hwmon/pmbus/tda38640.c +++ b/drivers/hwmon/pmbus/tda38640.c @@ -15,7 +15,7 @@ #include "pmbus.h" static const struct regulator_desc __maybe_unused tda38640_reg_desc[] = { - PMBUS_REGULATOR("vout", 0), + PMBUS_REGULATOR_ONE("vout"), }; struct tda38640_data {