]> 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)
commite73669244f65eb63686d89331136470fd8df1c7b
tree4190b3019683c74603f18d283c01251d6310db8f
parentce0eaf63cf3c177793376be22c4223dbe0a41379
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