Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp949695rbd; Fri, 23 Feb 2024 08:24:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV6bARcZpn1zbtZ+SuHlx+vnvPXpUVZEKlSJc6JU7jtoUylIVG6JPgNwM9Kmwnlr9yFgtb25UtzYWFfjgsehpHVQKwVpgcfpfffbT7AtQ== X-Google-Smtp-Source: AGHT+IGeFnuSiDxHDyXpNzFgk3T3j2/ZLd0fM/JhzW8zs/FnD+dYzVH5ayOvAdf96EqUiurDBcqu X-Received: by 2002:a05:6102:f06:b0:471:d4f7:2c35 with SMTP id v6-20020a0561020f0600b00471d4f72c35mr476079vss.2.1708705445585; Fri, 23 Feb 2024 08:24:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708705445; cv=pass; d=google.com; s=arc-20160816; b=A9kjELTQo2jFALI/sspFQ1R/BkVjnjMas/u6dxd3Oy3sNMA5ATtB0rpJl+AmXxUNEt O9udV/n32XeVCv/VWZAfz9YJIq8tYHmp8jSZztmjOwbrTJJOq+HWKlRdi4QMWhzr71ml S1m3Vy6LynUlfxKkTPIcCIvkHkUyQdAKRm2cbMifa22vCvhsZtrH6SjeGiL0mIYSkFuX oKoork021OGt0DvQmVYyi5b3fpcMoDw0HYJlvFvwEEi3Wl66HzS4YQ0ma7eeHN256qxx q1TxbB52/uawrlw4gT2gaxEAhyQYuKfLHxyZGcuI64mTgGmGrLba/zv73vbnSq6Dbbkh 6IMg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2sfy43RC9DSZ/YVGJtLndC1rVoZDDQ7IWLB8myJoMUs=; fh=x7BZgx5LKkWFLAFoe9p/O54YK0XTo1QETE/K7fPNxJ0=; b=KJuj5DuKQrTlsql78n+T3bZ9ZsgqcwbeGtIRgf0s/uwZZVPcRc04nzu7dYKCy7kniF gv9hMeuClQqi/fBQhZC0tnVFTEHcBV6hSA+1lV6mR3hMwPOSCPuDTt/Zj8Aj7yq23pRL lj3SuxOFq8lSxt9UPVokRo/Ipa9lSBC7Ld7lw5lPN9I2uRGDWph72D2rqZcd5P5ISyKL jnp65lJTZAYnBwFQByjQMsyOWRMW028/VzsOsnIeAezz/AH2LCc/giWaWwwzrHuOI+EV UBzZQr8wRThY4YTJLUdDyueGcBUU6X90KvdHG1G9HJamSlC+tMUq22xv6TM+1NRuV9sO c4Ug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEGjQbLT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78716-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x24-20020a056102091800b00471b43969eesi1032667vsh.366.2024.02.23.08.24.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:24:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEGjQbLT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78716-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78716-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 511C01C24C7E for ; Fri, 23 Feb 2024 16:24:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BDD412F5AB; Fri, 23 Feb 2024 16:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nEGjQbLT" 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 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-kernel@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 Content-Transfer-Encoding: 8bit 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 { -- 2.43.0