Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34298d40 authored by Mika Westerberg's avatar Mika Westerberg Committed by Anton Vorontsov
Browse files

smb347-charger: Convert to regmap API



The smb347-charger driver does a lot of read-modify-write to the device
registers. Instead of open-coding everything we can take advantage of
regmap API which provides nice functions to do this kind of things.

In addition there is no need for custom debugfs file for dumping
registers as this is already provided by the regmap API.

Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarAnton Vorontsov <anton.vorontsov@linaro.org>
parent d72bade7
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -291,6 +291,7 @@ config CHARGER_MAX8998
config CHARGER_SMB347
config CHARGER_SMB347
	tristate "Summit Microelectronics SMB347 Battery Charger"
	tristate "Summit Microelectronics SMB347 Battery Charger"
	depends on I2C
	depends on I2C
	select REGMAP_I2C
	help
	help
	  Say Y to include support for Summit Microelectronics SMB347
	  Say Y to include support for Summit Microelectronics SMB347
	  Battery Charger.
	  Battery Charger.
+231 −327

File changed.

Preview size limit exceeded, changes collapsed.