mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: tps6287x: Fix missing .n_voltages setting
@ 2023-05-16  8:23 Axel Lin
  2023-05-17 10:51 ` Mårten Lindahl
  2023-05-18 17:33 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Axel Lin @ 2023-05-16  8:23 UTC (permalink / raw)
  To: Mark Brown; +Cc: Mårten Lindahl, Liam Girdwood, linux-kernel, Axel Lin

Otherwise, regulator_list_voltage() will return -EINVAL.

Signed-off-by: Axel Lin <axel.lin@ingics.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,
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] regulator: tps6287x: Fix missing .n_voltages setting
  2023-05-16  8:23 [PATCH] regulator: tps6287x: Fix missing .n_voltages setting Axel Lin
@ 2023-05-17 10:51 ` Mårten Lindahl
  2023-05-18 17:33 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mårten Lindahl @ 2023-05-17 10:51 UTC (permalink / raw)
  To: Axel Lin, Mark Brown; +Cc: Mårten Lindahl, Liam Girdwood, linux-kernel

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

On 5/16/23 10:23, Axel Lin wrote:
> Otherwise, regulator_list_voltage() will return -EINVAL.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.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,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] regulator: tps6287x: Fix missing .n_voltages setting
  2023-05-16  8:23 [PATCH] regulator: tps6287x: Fix missing .n_voltages setting Axel Lin
  2023-05-17 10:51 ` Mårten Lindahl
@ 2023-05-18 17:33 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-05-18 17:33 UTC (permalink / raw)
  To: Axel Lin; +Cc: Mårten Lindahl, Liam Girdwood, linux-kernel

On Tue, 16 May 2023 16:23:33 +0800, Axel Lin wrote:
> Otherwise, regulator_list_voltage() will return -EINVAL.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

Thanks!

[1/1] regulator: tps6287x: Fix missing .n_voltages setting
      commit: 15a1cd245d5b3cc6cf42ca9ceacf9a6dfc2e33b4

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-18 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-16  8:23 [PATCH] regulator: tps6287x: Fix missing .n_voltages setting Axel Lin
2023-05-17 10:51 ` Mårten Lindahl
2023-05-18 17:33 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®