mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
07933fe29f
In svs_bank_resource_setup() there is a "big" switch assigning different names depending on sw_id and type and this will surely grow: for example MT8186 has got a two-line type (high/low) SVS bank for CPU_BIG, and this would require more switch nesting. Simplify all of this by changing that to a devm_kasprintf() call that will concatenate the SW_ID string (e.g. SVSB_CPU_LITTLE) with the Type string (e.g. _LOW), resulting in the expected full bank name (e.g. SVSB_CPU_LITTLE_LOW). This being a dynamic allocation can be slower, but this happens only once in the life of this driver and it's not a performance path, so it's totally acceptable. Link: https://lore.kernel.org/r/20231121125044.78642-5-angelogioacchino.delregno@collabora.com Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mt8167-mmsys.h | ||
mt8173-mmsys.h | ||
mt8183-mmsys.h | ||
mt8186-mmsys.h | ||
mt8188-mmsys.h | ||
mt8192-mmsys.h | ||
mt8195-mmsys.h | ||
mt8365-mmsys.h | ||
mtk-cmdq-helper.c | ||
mtk-devapc.c | ||
mtk-infracfg.c | ||
mtk-mmsys.c | ||
mtk-mmsys.h | ||
mtk-mutex.c | ||
mtk-pmic-wrap.c | ||
mtk-regulator-coupler.c | ||
mtk-svs.c |