Re: [PATCH 1/2] power: supply: bq2515x: Simpilfy bq2515x_read_properties() and probe()

From: Andy Shevchenko
Date: Mon Sep 04 2023 - 06:12:28 EST


On Sat, Sep 02, 2023 at 09:05:17PM +0100, Biju Das wrote:
> Add struct bq2515x_info and replace device_id->info in struct
> bq2515x_device.
>
> Simpilfy bq2515x_read_properties() and probe() by adding struct
> bq2425x_chip_info as match data for OF/ID tables and use
> i2c_get_match_data for retrieving match data instead of ID lookup.
>
> Drop enum bq2515x_id as there is no user.

...

> +/**
> + * struct bq2515x_info -

Missing description.

> + * @regmap_config: register map config
> + * @ilim: input current limit
> + */
> +struct bq2515x_info {
> + const struct regmap_config *regmap_config;
> + int ilim;
> };

--
With Best Regards,
Andy Shevchenko