soc: mediatek: mtk-svs: Commonize t-calibration-data fuse array read
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 25 Aug 2022 18:46:15 +0000 (14:46 -0400)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 26 Aug 2022 15:32:12 +0000 (17:32 +0200)
commit43819e3853306625275f1ada7416453117a9aabf
tree9de6e0e4ab4d1d1d9eb4576c636c3ca55030528d
parent1fedd6bee5509ff4d191ce0aa05595bf1955b89a
soc: mediatek: mtk-svs: Commonize t-calibration-data fuse array read

Commonize the repeating pattern for reading the "t-calibration-data"
efuse data in a new function svs_thermal_efuse_get_data(), reducing
the size of this driver.

No functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20220825184616.2118870-2-nfraprado@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-svs.c