diff options
author | Iskren Chernev <iskren.chernev@gmail.com> | 2020-09-22 13:42:32 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-10-03 13:04:28 +0200 |
commit | 6455a8a84bdfd34829d23328b9d106c2652885f2 (patch) | |
tree | 56f5230e3989f2b5e136df493b80183828fc7b13 /drivers/power/supply/Kconfig | |
parent | power: supply: max17040: Use devm_ to automate remove (diff) | |
download | linux-6455a8a84bdfd34829d23328b9d106c2652885f2.tar.xz linux-6455a8a84bdfd34829d23328b9d106c2652885f2.zip |
power: supply: max17040: Use regmap i2c
Rewrite i2c operations from i2c client read/write to regmap i2c. As
a result, most private functions now accept the private driver data
instead of an i2c client pointer.
Signed-off-by: Iskren Chernev <iskren.chernev@gmail.com>
Tested-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/Kconfig')
-rw-r--r-- | drivers/power/supply/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index a4657484f38b..47a4e1d363fc 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -367,6 +367,7 @@ config AXP288_FUEL_GAUGE config BATTERY_MAX17040 tristate "Maxim MAX17040 Fuel Gauge" depends on I2C + select REGMAP_I2C help MAX17040 is fuel-gauge systems for lithium-ion (Li+) batteries in handheld and portable equipment. The MAX17040 is configured |