power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor feature
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Wed, 10 May 2023 11:50:41 +0000 (12:50 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 15 May 2023 21:19:52 +0000 (23:19 +0200)
commit05c14ac245e908fa8fa9d61ec0a378b4afc8e3a2
tree3f4ddcdef7b07567afaa86d14daa7e804247357a
parent28ca77c9bb8c895ed13163d8b74dafdc90cf44e1
power: supply: axp20x_usb_power: Use regmap fields for VBUS monitor feature

Use regmap fields to describe the VBUS valid bit and VBUS monitor
enable bit. This allows the driver to easily support other chips,
eg. the AXP192, that have the VBUS valid bit in a different register.

Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_usb_power.c