Received: by 2002:a05:7208:3188:b0:7e:5202:c8b4 with SMTP id r8csp965678rbd; Fri, 23 Feb 2024 08:54:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV78WPE/eCEWhkSnIBNgU/f4UplajPS7cVlLToyr9cE3Wp5WPtM1Qs9kle6WujNfAtfPtE8VusAiLwYoWon0xxeNKGvLN6v22+w3mhr7g== X-Google-Smtp-Source: AGHT+IGJT5qKZfBh3bRyJEI8hTKWS8rJ9YJ04iam6ZmFb6MvQ8x9M7krKI7Js29diqQgnlLOvyYk X-Received: by 2002:a05:6a21:3118:b0:1a0:dfc4:a8c8 with SMTP id yz24-20020a056a21311800b001a0dfc4a8c8mr593018pzb.20.1708707260691; Fri, 23 Feb 2024 08:54:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708707260; cv=pass; d=google.com; s=arc-20160816; b=wNGE2nZIuVpjdT196f91LO4+0Hej5CeQ/oIEZr4fICqSf9OjHlFhg6Wlr6nTDPjuvk 1ArlIEgnbyeDCuSMc7REfbhkeYjUHfg3HCkGvMP8OEJEpjv94NPQ1F34Q102MVTsgHnC 07guEOXT5rLlnworFUrj1ftiv3JdmSn6+lL+WesU7i5qDUgH6IMTzlEbIDtgObu/VRoC 8pG+Vr+JVLfwTRAiEXWzvw39TRHMq/DiJF1wE03gdfPggBIglwGf4V/bJFEAH6VttrFR PV7QOtxunltki5NmgFHsPOWzkk/36aS0G5XI9gtcZH/aLAbvIJmVzRTUU8ug5DaFK9ty A+rw== 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=HfDdP3Bmn0II9UZYIe+loD2p1pk90upOrXHbdfrJ+/o=; fh=x7BZgx5LKkWFLAFoe9p/O54YK0XTo1QETE/K7fPNxJ0=; b=CAeGhhU3N/OcDFRuOpF7KKkjLXnzftIl1IAetwkuUIDgNPsgDI3JKL2nHyLxKR8bO+ 4nTZlIv89OL/FhbrILnWdoCCqH9NPWayM7pJ7h4gU9Jv3cCPxCE8SyWgF215TpxhbXUq Ch0KIZ1TYMYCC2NF2nyBx/k5Oi1rMrhlzx9xZtIeZGEnnPrw7GEAT362MmPygegjy0MV hiXOiwJAOfnB1HHqoehR4j+1RiaCLij6Yk5EDuP6OPGCS89Fuesmj2tNcs0Xufsx41yd 8dk0uSiDR4Op+hOMX+LZIahV4Ns+FVQmDippy020wK4qTfkPdVRpL3WFRDVGxPYitfAv TpZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dTIvL9xA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ka29-20020a056a00939d00b006e4ded38beesi1809175pfb.365.2024.02.23.08.54.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 08:54:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dTIvL9xA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78717-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 28E08B2A9C9 for ; Fri, 23 Feb 2024 16:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F303A1339A6; Fri, 23 Feb 2024 16:21:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dTIvL9xA" 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 249C912E1FC; Fri, 23 Feb 2024 16:21:49 +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=1708705310; cv=none; b=kCaT2ZCeSis/XTV+BY0810a3lTlWR706gABmv3RAj+No9p9LYfd9WQXqtoc/Q3OxxkWGFssHlwiNiqWb/6AJWyCwtw2Nl2SgrLc4XWjpNBILHimX+prgO1EQqKfpS93lywYOd8XMZM8GMPnRgkkYtg/RK67NDcDmuNo6d2GB2lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708705310; c=relaxed/simple; bh=jbwiQKAcTZW+OF+UocDdv05N53uW5wLX6hkKOMBTcOM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jUzpBxmEe0bfPxFMpVdyH7pSLDtKzzHxaYpMHFq/IUtgZ+2BuBIMprOwnKU4a6YmQLBDere7dIoQDwrGk8PDGwDJOQm0FT0sgJtfxvckhGkc8ozPCRsRct/RFGyrT8sgVuE87Bjq0lnGCMQm3EZfDZIEGzF//ZyQPs3FMSqhOxk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dTIvL9xA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65F04C43390; Fri, 23 Feb 2024 16:21:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708705309; bh=jbwiQKAcTZW+OF+UocDdv05N53uW5wLX6hkKOMBTcOM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dTIvL9xAKYzJdtJJl+Ix/2HOVcMOsQU7G28axnq7a+CL65sIgFuZsJIlluGUeIkWM ZtpLCZJbcaMFmJgHNX3Whbu6pnP/3ophsAP2Y/82Mcnt6LfGUO7tcizXvVp4c2R5gA OQ2DryRFGSfsQWLZfJJ/DtQKHuc/aQmswPsTnlwOac/5/fNaModp2T8DBy7QXgmmQ5 o/c4YRSGshfFBRoUHJh4MymSHJy1A4+qKa4d/h6E+RBTcJAyvPMEGlgfyVQS+PGq6A 4Auiq06PqG9UpocQ69cVdr1gKGBo/IKIrCs87IPysVAFEPURO14EbuIeSpAHz7yN4D i7BtcwpSEjo4w== 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 4/5] hwmon: (pmbus/lm25066) Use PMBUS_REGULATOR_ONE to declare regulator Date: Fri, 23 Feb 2024 16:21:08 +0000 Message-ID: <20240223-player-buckskin-01405c5889c4@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=989; i=conor.dooley@microchip.com; h=from:subject:message-id; bh=pvEzR+gA96CLf2ByeujTgLZ57PfkfC8+QPdFFNSWXgs=; b=owGbwMvMwCFWscWwfUFT0iXG02pJDKk3jv7gz06I0cheuEdus3LXUs8VHOcbHY3E2+fbzz/8K MS5rnxSRykLgxgHg6yYIkvi7b4WqfV/XHY497yFmcPKBDKEgYtTACbCrMnI0DVRsNCUvTao7sf2 mos/klY288iwVgWHCPJfMjqwP1jtDMN/p2exUl/Z/R38lhRLrjlzI32jzbo/33cnSvKnz2Kom9H PAwA= 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: Zev Weiss Signed-off-by: Guenter Roeck Signed-off-by: Conor Dooley --- drivers/hwmon/pmbus/lm25066.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/lm25066.c b/drivers/hwmon/pmbus/lm25066.c index 3a20df5a43ec..cfffa4cdc0df 100644 --- a/drivers/hwmon/pmbus/lm25066.c +++ b/drivers/hwmon/pmbus/lm25066.c @@ -437,7 +437,7 @@ static int lm25066_write_word_data(struct i2c_client *client, int page, int reg, #if IS_ENABLED(CONFIG_SENSORS_LM25066_REGULATOR) static const struct regulator_desc lm25066_reg_desc[] = { - PMBUS_REGULATOR("vout", 0), + PMBUS_REGULATOR_ONE("vout"), }; #endif -- 2.43.0