]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1591afa6e7336a941c737c7dcc48fc9c47a8f06
tree2573d50fd84d190de7f3306bf3241dc6a22d698c
parent5db77c0c3021db203000ae669daa923b6903587b
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