Re: [PATCH v2 1/2] regulator: pv880x0: Simplify probe()
From: Andy Shevchenko
Date: Tue Aug 29 2023 - 11:17:11 EST
On Mon, Aug 28, 2023 at 06:24:16PM +0100, Biju Das wrote:
> Replace pv88080_types->pv88080_compatible_regmap in OF/ID tables and
> simplify the probe() by replacing of_match_node() and ID lookup for
> retrieving match data by i2c_get_match_data(). After this there is
> no user of enum pv88080_types. So drop it.
>
> While at it, remove trailing comma in the terminator entry for OF/ID
> tables.
...
> +#ifdef CONFIG_OF
Do you still need this? (Perhaps in a separate patch to remove?)
...
> +static const struct of_device_id pv88080_dt_ids[] = {
> + { .compatible = "pvs,pv88080", .data = &pv88080_aa_regs },
> + { .compatible = "pvs,pv88080-aa", .data = &pv88080_aa_regs },
One space too many.
> + { .compatible = "pvs,pv88080-ba", .data = &pv88080_ba_regs },
> + {}
> +};
--
With Best Regards,
Andy Shevchenko