]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: rt5033_battery: Fix device tree enumeration
authorStephan Gerhold <stephan@gerhold.net>
Mon, 17 May 2021 10:51:12 +0000 (12:51 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 4 Jun 2021 10:30:50 +0000 (12:30 +0200)
commit8cbd7484b50d92d8ae0a831e74bb02d3beb8121b
tree3e736d8a78bb694268c7c73825db957f16697078
parentded377ab3b27838e26f84d0265c25773f1b8d6f6
power: supply: rt5033_battery: Fix device tree enumeration

The fuel gauge in the RT5033 PMIC has its own I2C bus and interrupt
line. Therefore, it is not actually part of the RT5033 MFD and needs
its own of_match_table to probe properly.

Also, given that it's independent of the MFD, there is actually
no need to make the Kconfig depend on MFD_RT5033. Although the driver
uses the shared <linux/mfd/rt5033.h> header, there is no compile
or runtime dependency on the RT5033 MFD driver.

Cc: Beomho Seo <beomho.seo@samsung.com>
Cc: Chanwoo Choi <cw00.choi@samsung.com>
Fixes: 267e334cede9 ("power: rt5033_battery: Add RT5033 Fuel gauge device driver")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig
drivers/power/supply/rt5033_battery.c