Re: [PATCH v3 5/8] power: supply: axp20x_usb_power: Use a match structure

From: Chen-Yu Tsai
Date: Sun Jan 12 2020 - 23:09:08 EST


On Mon, Jan 13, 2020 at 11:53 AM Samuel Holland <samuel@xxxxxxxxxxxx> wrote:
>
> Instead of ad-hoc variant ID checks throughout the code, let's start
> moving the variant-specific details to a match structure. This allows
> for future flexibility, and it better matches the other axp20x power
> supply drivers.
>
> This commit removes most variant checks from axp20x_usb_power_probe().
> Other parts of the driver still do ID matching; they are left unchanged
> for now.
>
> Signed-off-by: Samuel Holland <samuel@xxxxxxxxxxxx>

Reviewed-by: Chen-Yu Tsai <wens@xxxxxxxx>