soc: mediatek: mtk-svs: use common function to disable restore voltages
authorRoger Lu <roger.lu@mediatek.com>
Thu, 2 Feb 2023 12:41:03 +0000 (20:41 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 6 Mar 2023 13:35:44 +0000 (14:35 +0100)
commit5061c47ebf6edaf024fed1eaf63499fe7183c54e
treee8e263cf4a5d3b16fce71c1e021a18f6e8f6fd55
parent9f195f3a1e696b6576988c1e58fa7389beae3351
soc: mediatek: mtk-svs: use common function to disable restore voltages

The timing of disabling SVS bank and restore default voltage is more
than one place. Therefore, add a common function to use for removing
the superfluous codes.

Signed-off-by: Roger Lu <roger.lu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230202124104.16504-3-roger.lu@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-svs.c