lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 17 May 2023 12:51:14 +0200
From:   Mårten Lindahl <martenli@...s.com>
To:     Axel Lin <axel.lin@...ics.com>, Mark Brown <broonie@...nel.org>
CC:     Mårten Lindahl <marten.lindahl@...s.com>,
        Liam Girdwood <lgirdwood@...il.com>,
        <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] regulator: tps6287x: Fix missing .n_voltages setting

Reviewed-by: Mårten Lindahl <marten.lindahl@...s.com>

On 5/16/23 10:23, Axel Lin wrote:
> Otherwise, regulator_list_voltage() will return -EINVAL.
>
> Signed-off-by: Axel Lin <axel.lin@...ics.com>
> ---
>   drivers/regulator/tps6287x-regulator.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/regulator/tps6287x-regulator.c b/drivers/regulator/tps6287x-regulator.c
> index d7fc82175493..870e63ce3ff2 100644
> --- a/drivers/regulator/tps6287x-regulator.c
> +++ b/drivers/regulator/tps6287x-regulator.c
> @@ -119,6 +119,7 @@ static struct regulator_desc tps6287x_reg = {
>   	.ramp_mask = TPS6287X_CTRL1_VRAMP,
>   	.ramp_delay_table = tps6287x_ramp_table,
>   	.n_ramp_values = ARRAY_SIZE(tps6287x_ramp_table),
> +	.n_voltages = 256,
>   	.linear_ranges = tps6287x_voltage_ranges,
>   	.n_linear_ranges = ARRAY_SIZE(tps6287x_voltage_ranges),
>   	.linear_range_selectors = tps6287x_voltage_range_sel,

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ