OSDN Git Service

clk: mediatek: mt8192: deduplicate parent clock lists
authorChen-Yu Tsai <wenst@chromium.org>
Mon, 26 Sep 2022 10:25:22 +0000 (18:25 +0800)
committerChen-Yu Tsai <wenst@chromium.org>
Thu, 29 Sep 2022 04:27:33 +0000 (12:27 +0800)
commit99f3a5e851e9a1d82d73c4f396c6dbf123413c16
tree2573d50fd84d190de7f3306bf3241dc6a22d698c
parentfef14676fc4be40b8441745a3c96b7e7d7d8592d
clk: mediatek: mt8192: deduplicate parent clock lists

Some groups of clocks of the same type share the same list of parents.
These lists were declared separately for each clock in older drivers,
bloating the code.

Merge some obvious duplicate parent clock lists in the MT8192 clock
driver together to reduce the code size. These include:

- apll_i2s*_m_parents into one as apll_i2s_m_parents
- img1_parents & img2_parents into one as img_parents
- msdc30_*_parents into one as msdc30_parents
- camtg*_parents into cam_tg_parents
- seninf*_parents into seninf_parents

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220926102523.2367530-6-wenst@chromium.org
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
drivers/clk/mediatek/clk-mt8192.c