power: supply: bq256xx: Use i2c_get_match_data()
authorBiju Das <biju.das.jz@bp.renesas.com>
Sat, 2 Sep 2023 20:25:04 +0000 (21:25 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 12 Sep 2023 16:16:00 +0000 (18:16 +0200)
commitf28992902b17245af042913d6cfd6a1cc100bcaf
tree9f1927f1b8b50f24ae675a3ee4e2bd330bf67034
parent0bb80ecc33a8fb5a682236443c1e740d5c917d1d
power: supply: bq256xx: Use i2c_get_match_data()

Use i2c_get_match_data() for OF/ID/ACPI match instead of ID lookup by
replacing OF/ACPI/ID match data from enum bq256xx_id to
struct bq256xx_chip_info.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230902202505.97609-2-biju.das.jz@bp.renesas.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq256xx_charger.c