Skip to content

Commit

Permalink
smb347-charger: Convert to regmap API
Browse files Browse the repository at this point in the history
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: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
  • Loading branch information
Mika Westerberg authored and Anton Vorontsov committed May 5, 2012
1 parent d72bade commit 34298d4
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 327 deletions.
1 change: 1 addition & 0 deletions drivers/power/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ config CHARGER_MAX8998
config CHARGER_SMB347
tristate "Summit Microelectronics SMB347 Battery Charger"
depends on I2C
select REGMAP_I2C
help
Say Y to include support for Summit Microelectronics SMB347
Battery Charger.
Expand Down
Loading

0 comments on commit 34298d4

Please sign in to comment.