]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: core: support bus regulator controlling in adapter
authorBibby Hsieh <bibby.hsieh@mediatek.com>
Thu, 27 May 2021 07:55:53 +0000 (15:55 +0800)
committerWolfram Sang <wsa@kernel.org>
Fri, 28 May 2021 18:50:01 +0000 (20:50 +0200)
commita1034624da5dd32b0fac9ac97c1a58dea5063738
tree4190b3019683c74603f18d283c01251d6310db8f
parent81e01aa5d6a08c5557e219fd0fb7e80c6619fbe3
i2c: core: support bus regulator controlling in adapter

Although in the most platforms, the bus power of i2c
are alway on, some platforms disable the i2c bus power
in order to meet low power request.

We can control bulk regulator if it is provided in i2c
adapter device.

Signed-off-by: Bibby Hsieh <bibby.hsieh@mediatek.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-base.c
include/linux/i2c.h