power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling check
authorAidan MacDonald <aidanmacdonald.0x0@gmail.com>
Wed, 10 May 2023 11:50:44 +0000 (12:50 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 15 May 2023 21:19:52 +0000 (23:19 +0200)
commit830087b11e1a60f86e1614043b8caeb9c74b340a
tree534a7c0014f24f2a3b71cf4c56641aeaf6504203
parent305398bfce771179f82940f428714651e6f3ad76
power: supply: axp20x_usb_power: Remove variant IDs from VBUS polling check

Use an explicit boolean flag instead of a check based on the
variant ID. Since this is the last use of variant IDs in the
driver, also remove the IDs.

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