]> git.baikalelectronics.ru Git - kernel.git/commit
clk: mediatek: mux: Clean up included headers
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:14 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:22 +0000 (12:12 -0800)
commit3e1ebb1bae3e94e7d9cea4e00feceed80e14a1e5
tree6df422c876d19a4d3a8979e614cb95f6ab395e3e
parentc6f6ee3287d2cee7e45c194d65707d5bc4d4dbb1
clk: mediatek: mux: Clean up included headers

Some included headers aren't actually used anywhere, while other headers
with the declaration of functions and structures aren't directly
included.

Get rid of the unused ones, and add the ones that should be included
directly.

On the header side, replace headers that are included purely for data
structure definitions with forward declarations. This decreases the
amount of preprocessing and compilation effort required for each
inclusion.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220208124034.414635-12-wenst@chromium.org
Reviewed-by: Chun-Jie Chen <chun-jie.chen@mediatek.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mux.c
drivers/clk/mediatek/clk-mux.h