diff options
author | 2023-09-02 20:33:30 +0100 | |
---|---|---|
committer | 2023-09-12 23:49:46 +0200 | |
commit | 3dc4a291a1b156d3ee9a78672ec950601bd68c1c (patch) | |
tree | b653d2a8071de2c2faf6412dd8282b8b038d0ce8 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | power: supply: bq2515x: Cleanup OF/ID table terminators (diff) | |
download | wireguard-linux-3dc4a291a1b156d3ee9a78672ec950601bd68c1c.tar.xz wireguard-linux-3dc4a291a1b156d3ee9a78672ec950601bd68c1c.zip |
power: supply: bq24257_charger: Make chip type and name in sync
Add struct bq2425x_chip_info to make enum bq2425x_chip and it's name in
sync and replace chip->info in struct bq24257_device and add struct
bq2425x_chip_info as match data for OF/ACPI/ID tables.
Simpilfy probe() by replacing acpi_match_device() and id lookup for
retrieving match data by using i2c_get_match_data().
Drop bq2425x_chip_name as there is no user and also drop the comment
related to syncing chip and name as it is taken care by struct
bq2425x_chip_info.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230902193331.83672-2-biju.das.jz@bp.renesas.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions