mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] regulator: pf1550: Remove redundant regmap assignment
@ 2026-03-12 14:30 Felix Gu
  2026-03-12 15:46 ` Frank Li
  2026-03-12 17:34 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Gu @ 2026-03-12 14:30 UTC (permalink / raw)
  To: Samuel Kayode, Liam Girdwood, Mark Brown, Frank Li, Lee Jones
  Cc: imx, linux-kernel, Felix Gu

The config.regmap is already correctly initialized using dev_get_regmap()
on the parent device. Remove the redundant second assignment that was
overwriting it with pf1550->regmap.

Fixes: 7320d41c29bb ("regulator: pf1550: Add support for regulator")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
---
 drivers/regulator/pf1550-regulator.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/pf1550-regulator.c b/drivers/regulator/pf1550-regulator.c
index 037b8ec94066..1d1726528460 100644
--- a/drivers/regulator/pf1550-regulator.c
+++ b/drivers/regulator/pf1550-regulator.c
@@ -360,7 +360,6 @@ static int pf1550_regulator_probe(struct platform_device *pdev)
 				     "failed to get parent regmap\n");
 
 	config.dev = pf1550->dev;
-	config.regmap = pf1550->regmap;
 	info->dev = &pdev->dev;
 	info->pf1550 = pf1550;
 

---
base-commit: f90aadf1c67c8b4969d1e5e6d4fd7227adb6e4d7
change-id: 20260312-1550-327017c6f56c

Best regards,
-- 
Felix Gu <ustc.gu@gmail.com>


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

* Re: [PATCH] regulator: pf1550: Remove redundant regmap assignment
  2026-03-12 14:30 [PATCH] regulator: pf1550: Remove redundant regmap assignment Felix Gu
@ 2026-03-12 15:46 ` Frank Li
  2026-03-12 17:34 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2026-03-12 15:46 UTC (permalink / raw)
  To: Felix Gu
  Cc: Samuel Kayode, Liam Girdwood, Mark Brown, Lee Jones, imx, linux-kernel

On Thu, Mar 12, 2026 at 10:30:31PM +0800, Felix Gu wrote:
> The config.regmap is already correctly initialized using dev_get_regmap()
> on the parent device. Remove the redundant second assignment that was
> overwriting it with pf1550->regmap.
>
> Fixes: 7320d41c29bb ("regulator: pf1550: Add support for regulator")

Nit: This is not bug fix and it is code cleanup. Needn't fixes tag here

Reviewed-by: Frank Li <Frank.Li@nxp.com>

> Signed-off-by: Felix Gu <ustc.gu@gmail.com>
> ---
>  drivers/regulator/pf1550-regulator.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/regulator/pf1550-regulator.c b/drivers/regulator/pf1550-regulator.c
> index 037b8ec94066..1d1726528460 100644
> --- a/drivers/regulator/pf1550-regulator.c
> +++ b/drivers/regulator/pf1550-regulator.c
> @@ -360,7 +360,6 @@ static int pf1550_regulator_probe(struct platform_device *pdev)
>  				     "failed to get parent regmap\n");
>
>  	config.dev = pf1550->dev;
> -	config.regmap = pf1550->regmap;
>  	info->dev = &pdev->dev;
>  	info->pf1550 = pf1550;
>
>
> ---
> base-commit: f90aadf1c67c8b4969d1e5e6d4fd7227adb6e4d7
> change-id: 20260312-1550-327017c6f56c
>
> Best regards,
> --
> Felix Gu <ustc.gu@gmail.com>
>

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

* Re: [PATCH] regulator: pf1550: Remove redundant regmap assignment
  2026-03-12 14:30 [PATCH] regulator: pf1550: Remove redundant regmap assignment Felix Gu
  2026-03-12 15:46 ` Frank Li
@ 2026-03-12 17:34 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-03-12 17:34 UTC (permalink / raw)
  To: Samuel Kayode, Liam Girdwood, Frank Li, Lee Jones, Felix Gu
  Cc: imx, linux-kernel

On Thu, 12 Mar 2026 22:30:31 +0800, Felix Gu wrote:
> The config.regmap is already correctly initialized using dev_get_regmap()
> on the parent device. Remove the redundant second assignment that was
> overwriting it with pf1550->regmap.

Applied to

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

Thanks!

[1/1] regulator: pf1550: Remove redundant regmap assignment
      commit: e80c626ae06ed9c502ebda4a7e0b390af9ccf6b0

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:[~2026-03-12 17:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-12 14:30 [PATCH] regulator: pf1550: Remove redundant regmap assignment Felix Gu
2026-03-12 15:46 ` Frank Li
2026-03-12 17:34 ` 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®