[PATCH 0/3] power: supply: set_charged deadcode

linux@treblig.org posted 3 patches 11 months, 1 week ago
drivers/power/supply/ds2760_battery.c    | 49 ------------------------
drivers/power/supply/power_supply_core.c | 13 -------
include/linux/power_supply.h             |  2 -
3 files changed, 64 deletions(-)
[PATCH 0/3] power: supply: set_charged deadcode
Posted by linux@treblig.org 11 months, 1 week ago
From: "Dr. David Alan Gilbert" <linux@treblig.org>

Hi,
  This series removes power_supply_set_battery_charged()
which hasn't been called for a while, and then goes to clean up
the set_charged() method which it was the only caller of.
  The only setter of it was the ds2760, which I'm not too sure
is used any more, but I've left the device in.

Dave

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>


Dr. David Alan Gilbert (3):
  power: supply: core: Remove unused power_supply_set_battery_charged
  power: supply: ds2760: Remove unused ds2760_battery_set_charged
  power: supply: Remove unused set_charged method

 drivers/power/supply/ds2760_battery.c    | 49 ------------------------
 drivers/power/supply/power_supply_core.c | 13 -------
 include/linux/power_supply.h             |  2 -
 3 files changed, 64 deletions(-)

-- 
2.48.1
Re: [PATCH 0/3] power: supply: set_charged deadcode
Posted by Sebastian Reichel 11 months, 1 week ago
On Fri, 07 Mar 2025 23:02:22 +0000, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> Hi,
>   This series removes power_supply_set_battery_charged()
> which hasn't been called for a while, and then goes to clean up
> the set_charged() method which it was the only caller of.
>   The only setter of it was the ds2760, which I'm not too sure
> is used any more, but I've left the device in.
> 
> [...]

Applied, thanks!

[1/3] power: supply: core: Remove unused power_supply_set_battery_charged
      commit: 46723e2839a543859a754b0e6b6f88fa71038b09
[2/3] power: supply: ds2760: Remove unused ds2760_battery_set_charged
      commit: 172b7d79f79629300e7a6d16bc7e743b11e5ff2c
[3/3] power: supply: Remove unused set_charged method
      commit: 68b6cf4020726a8be4fa4462e12b16c7fcf8487d

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>