]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: bq257xx: Remove reference to the parent MFD's dev
authorAlexey Charkov <alchark@flipper.net>
Tue, 31 Mar 2026 15:43:39 +0000 (19:43 +0400)
committerMark Brown <broonie@kernel.org>
Fri, 10 Apr 2026 10:52:40 +0000 (11:52 +0100)
commitaef4d87f2c1fdb87e55ea2cbe3ea47b01b256f57
treec9b0916a8f1d49b9fd3d43e1dfc6f3800dd1b4c7
parente7ef5ec6d1f0568e5c11ceeb729f412560ad8ef7
regulator: bq257xx: Remove reference to the parent MFD's dev

Drop the ->bq field from the platform data of the bq257xx regulator driver,
which was only used to get the regmap of the parent MFD device, and use the
regmap from the regulator_dev instead, slimming down the code a bit.

Acked-by: Mark Brown <broonie@kernel.org>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Alexey Charkov <alchark@flipper.net>
Link: https://patch.msgid.link/20260331-bq25792-v6-2-0278fba33eb9@flipper.net
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bq257xx-regulator.c