]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: ds2782: Switch to simpler IDA interface
authorAndrew Davis <afd@ti.com>
Mon, 2 Dec 2024 21:15:15 +0000 (15:15 -0600)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 4 Dec 2024 21:31:31 +0000 (22:31 +0100)
commitbea4395a04d2602e72f550e795c15e98e557b779
tree8ca8e8b27d80ca151e0f972eef1e003e248118cf
parentdc509d8be38ffe4ff6d752bdb7913718318e83cd
power: supply: ds2782: Switch to simpler IDA interface

We don't need to specify any ranges when allocating IDs so we can switch
to ida_alloc() and ida_free() instead of idr_*.

Signed-off-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20241202211519.199635-1-afd@ti.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ds2782_battery.c