]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mt65xx: Simplify with clk-bulk
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 3 Mar 2022 09:15:47 +0000 (10:15 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 11 Mar 2022 20:54:07 +0000 (21:54 +0100)
commit3eb4f2f2bfa776075f1f5928f9ddd11c7c377dcc
treeaa263dbf50563f9eebe36f245d0b7563064a53e3
parent0abbd3e31f38e2949ce0edd9e987829cb47ed8bb
i2c: mt65xx: Simplify with clk-bulk

Since depending on the SoC or specific bus functionality some clocks
may be optional, we cannot get the benefit of using devm_clk_bulk_get()
but, by migrating to clk-bulk, we are able to remove the custom functions
mtk_i2c_clock_enable() and mtk_i2c_clock_disable(), increasing common
APIs usage, hence (lightly) decreasing kernel footprint.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Qii Wang <qii.wang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-mt65xx.c