regulator: arizona-micsupp: Don't use a common regulator name
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 9 Nov 2022 16:53:26 +0000 (16:53 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 22 Nov 2022 17:05:04 +0000 (17:05 +0000)
commit9211402fe72428bffe8e474448e671deeb6c52cb
treef2c3c38d8f899888e2bc472dbfb49275c037edaa
parent2da34b2301386bfed929d41c2e5367d484a140fe
regulator: arizona-micsupp: Don't use a common regulator name

The Arizona and Madera codecs all have a datasheet name of "MICVDD"
for the regulator output. But future codecs with a regulator that
can be controlled by this driver have different naming convention
for the output of the regulator.

Move the setting of the supply name from arizona_micsupp_common_init()
to arizona_micsupp_probe() and madera_micsupp_probe().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221109165331.29332-8-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/arizona-micsupp.c