Skip to content

Commit 85cdf36

Browse files
Rickard Strandqvistsre
authored andcommitted
power: ab8500_fg.c: Remove unused function
Remove the function ab8500_fg_reinit() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Sebastian Reichel <sre@kernel.org>
1 parent a7c45b6 commit 85cdf36

2 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎drivers/power/ab8500_fg.c‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,20 +2435,6 @@ static void ab8500_fg_reinit_work(struct work_struct *work)
24352435
}
24362436
}
24372437

2438-
/**
2439-
* ab8500_fg_reinit() - forces FG algorithm to reinitialize with current values
2440-
*
2441-
* This function can be used to force the FG algorithm to recalculate a new
2442-
* voltage based battery capacity.
2443-
*/
2444-
void ab8500_fg_reinit(void)
2445-
{
2446-
struct ab8500_fg *di = ab8500_fg_get();
2447-
/* User won't be notified if a null pointer returned. */
2448-
if (di != NULL)
2449-
queue_delayed_work(di->fg_wq, &di->fg_reinit_work, 0);
2450-
}
2451-
24522438
/* Exposure to the sysfs interface */
24532439

24542440
struct ab8500_fg_sysfs_entry {

‎include/linux/mfd/abx500/ab8500-bm.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,6 @@ struct ab8500_fg;
461461
#ifdef CONFIG_AB8500_BM
462462
extern struct abx500_bm_data ab8500_bm_data;
463463

464-
void ab8500_fg_reinit(void);
465464
void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA);
466465
struct ab8500_btemp *ab8500_btemp_get(void);
467466
int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp);

0 commit comments

Comments
 (0)