Skip to content

Commit a65aa0c

Browse files
Linus WalleijLee Jones
authored andcommitted
mfd/power: ab8500: Push algorithm to power supply code
The charging algorithm header is only used locally in the power supply subsystem so push this down into drivers/power/supply and rename from the confusing "ux500_chargalg.h" to "ab8500-chargalg.h" for clarity: it is only used with the AB8500. This is another remnant of non-DT code needing to pass data from boardfiles, which we don't do anymore. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 417c0fc commit a65aa0c

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Author: Johan Gardsmark <johan.gardsmark@stericsson.com> for ST-Ericsson.
55
*/
66

7-
#ifndef _UX500_CHARGALG_H
8-
#define _UX500_CHARGALG_H
7+
#ifndef _AB8500_CHARGALG_H_
8+
#define _AB8500_CHARGALG_H_
99

1010
#include <linux/power_supply.h>
1111

@@ -48,4 +48,4 @@ struct ux500_charger {
4848

4949
extern struct blocking_notifier_head charger_notifier_list;
5050

51-
#endif
51+
#endif /* _AB8500_CHARGALG_H_ */

‎drivers/power/supply/ab8500_charger.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
#include <linux/mfd/core.h>
2929
#include <linux/mfd/abx500/ab8500.h>
3030
#include <linux/mfd/abx500.h>
31-
#include <linux/mfd/abx500/ux500_chargalg.h>
3231
#include <linux/usb/otg.h>
3332
#include <linux/mutex.h>
3433
#include <linux/iio/consumer.h>
3534

3635
#include "ab8500-bm.h"
36+
#include "ab8500-chargalg.h"
3737

3838
/* Charger constants */
3939
#define NO_PW_CONN 0

‎drivers/power/supply/abx500_chargalg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
#include <linux/mfd/core.h>
2929
#include <linux/mfd/abx500.h>
3030
#include <linux/mfd/abx500/ab8500.h>
31-
#include <linux/mfd/abx500/ux500_chargalg.h>
3231
#include <linux/notifier.h>
3332

3433
#include "ab8500-bm.h"
34+
#include "ab8500-chargalg.h"
3535

3636
/* Watchdog kick interval */
3737
#define CHG_WD_INTERVAL (6 * HZ)

‎drivers/power/supply/pm2301_charger.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
#include <linux/i2c.h>
1919
#include <linux/workqueue.h>
2020
#include <linux/mfd/abx500/ab8500.h>
21-
#include <linux/mfd/abx500/ux500_chargalg.h>
2221
#include <linux/pm2301_charger.h>
2322
#include <linux/gpio.h>
2423
#include <linux/pm_runtime.h>
2524
#include <linux/pm.h>
2625

2726
#include "ab8500-bm.h"
27+
#include "ab8500-chargalg.h"
2828
#include "pm2301_charger.h"
2929

3030
#define to_pm2xxx_charger_ac_device_info(x) container_of((x), \

0 commit comments

Comments
 (0)