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)
commit5a7b95fb993ec399c8a685552aa6a8fc995c40bd
tree4190b3019683c74603f18d283c01251d6310db8f
parentcb3c66af9585c0301a772332e195ead1fe3b29cf
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