From nobody Fri Dec 19 14:23:34 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B3E7C83F12 for ; Tue, 29 Aug 2023 14:05:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236767AbjH2OFO (ORCPT ); Tue, 29 Aug 2023 10:05:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236777AbjH2OEp (ORCPT ); Tue, 29 Aug 2023 10:04:45 -0400 Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8348BCD9 for ; Tue, 29 Aug 2023 07:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1693317873; x=1724853873; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=WD26gmABzoJ++0sx9qo1Iw0ukCA0Y7iDO6UmetUh1E4=; b=UDOtgofB4Q5s1I7Bnay1bGvJdWoZdJFv03Ve21vp/ChQ9bifOLOWXUAU gQ3cpfvxLN+022oARn3ddi5CezubxJxuWC2iAcrMjkdxRdQX0hqHi/TMW wG2LM2vclAlJQDk1lcXAkoqjc6ZU6oKfVDoOIu8ivzX4jaa5jhT+rxg3c JXscsntuo5EjRwhE9Nzx+Hl0BFyYx286Wt/oqYcGfzcLoyDlIaLk0gdA0 HqI/0joFuj3HVnVdcchyxBeIycF4xBg7p0MkVFxeI7trr3uWyx6t/Qswl aaENdumWWLBPGFMqFzo4EYC3Mnawg+fFGk7RUjpQLXeR0E+A6fnBJH6io g==; From: Vincent Whitchurch Date: Tue, 29 Aug 2023 16:04:12 +0200 Subject: [PATCH] regulator: tps6287x: Fix n_voltages MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20230829-tps-voltages-v1-1-7ba4f958a194@axis.com> X-B4-Tracking: v=1; b=H4sIANv67WQC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDCyNL3ZKCYt2y/JySxPTUYt00Q0tLy0RLAzPzZBMloJaCotS0zAqwcdG xtbUAYQJQql4AAAA= To: Liam Girdwood , Mark Brown CC: Axel Lin , , , Vincent Whitchurch X-Mailer: b4 0.12.3 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are 256 possible voltage settings for each range, not 256 possible voltage settings in total. Fixes: 15a1cd245d5b ("regulator: tps6287x: Fix missing .n_voltages setting") Signed-off-by: Vincent Whitchurch --- drivers/regulator/tps6287x-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/tps6287x-regulator.c b/drivers/regulator/tps= 6287x-regulator.c index b1c0963586ac..e45579a4498c 100644 --- a/drivers/regulator/tps6287x-regulator.c +++ b/drivers/regulator/tps6287x-regulator.c @@ -119,7 +119,7 @@ static struct regulator_desc tps6287x_reg =3D { .ramp_mask =3D TPS6287X_CTRL1_VRAMP, .ramp_delay_table =3D tps6287x_ramp_table, .n_ramp_values =3D ARRAY_SIZE(tps6287x_ramp_table), - .n_voltages =3D 256, + .n_voltages =3D 256 * ARRAY_SIZE(tps6287x_voltage_ranges), .linear_ranges =3D tps6287x_voltage_ranges, .n_linear_ranges =3D ARRAY_SIZE(tps6287x_voltage_ranges), .linear_range_selectors =3D tps6287x_voltage_range_sel, --- base-commit: 2dde18cd1d8fac735875f2e4987f11817cc0bc2c change-id: 20230829-tps-voltages-f1999a9067c4 Best regards, --=20 Vincent Whitchurch