]> www.infradead.org Git - users/willy/xarray.git/commit
clk: mediatek: clk-gate: Shrink by adding clockgating bit check helper
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 3 Jan 2022 14:37:11 +0000 (15:37 +0100)
committerStephen Boyd <sboyd@kernel.org>
Fri, 7 Jan 2022 02:27:10 +0000 (18:27 -0800)
commit4233463866796affc6674888e4cbaa24e0ff7965
tree33f182a7174adbe1b4706f38a42e4cdfa9ccb242
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
clk: mediatek: clk-gate: Shrink by adding clockgating bit check helper

Add a clockgating bit check helper and use it in functions
mtk_cg_bit_is_cleared(), mtk_cg_bit_is_set() to shrink the
file size.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220103143712.46675-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-gate.c