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)
commit0016a32f7591aec5413cf1f52b9ce522f1cae44f
treeaa263dbf50563f9eebe36f245d0b7563064a53e3
parent52c74d17d89c6e69f9b774cdd477517e62383f55
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