power: supply: axp288_charger: Use regmap_update_bits to set the input limits
authorHans de Goede <hdegoede@redhat.com>
Tue, 26 Dec 2017 12:59:03 +0000 (13:59 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 8 Jan 2018 17:38:57 +0000 (18:38 +0100)
commitbbafa111caa06339a1ca50a7230c56dea0dffbde
treebea3fa91a6d1251c2203ed53c538940a1b8d8a16
parenta9904aa82806143641a04521f6d296a13f636834
power: supply: axp288_charger: Use regmap_update_bits to set the input limits

Use regmap_update_bits in axp288_charger_set_vbus_inlmt, instead of DIY
code.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp288_charger.c