power: supply: twl4030_madc_battery: Refactor twl4030_madc_bat_ext_changed()
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Apr 2023 16:07:34 +0000 (18:07 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 8 May 2023 13:07:56 +0000 (15:07 +0200)
commit32fe18d0340d88e8ab6e5ecf57211276b9ac39bf
treea010a69c26b211b12de8e0b255fc70b798898c18
parent1269774ac3c8b5845ce12cb686165f3e4850b91e
power: supply: twl4030_madc_battery: Refactor twl4030_madc_bat_ext_changed()

twl4030_madc_bat_ext_changed() is a wrapper around
"power_supply_changed(psy);" and it has the same prototype.

Remove it, replacing it with making the external_power_changed
callback directly point to power_supply_changed.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/twl4030_madc_battery.c