-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathv11-0005-pm-Remove-to_power_supply-impl-in-ds278.patch
60 lines (51 loc) · 1.92 KB
/
v11-0005-pm-Remove-to_power_supply-impl-in-ds278.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
From 6ab64f16db1b1ccb4fa16dda33a35e3baf44a097 Mon Sep 17 00:00:00 2001
From: Ognjen Galic <[email protected]>
Date: Sun, 31 Dec 2017 14:07:25 +0100
Subject: [PATCH v11 5/5] pm: Remove to_power_supply impl in ds278*
This patch fixes a issue introduced by patch:
pm: add to_power_supply macro to the API
In that patch a new macro has been defined in the
power_supply.h header with the same name as the private
function name in the ds278* battery modules that does the
same thing, thus clashing and producing build errors.
This patch removes that private implementation.
Signed-off-by: Ognjen Galic <[email protected]>
v11:
* Fix build error pointed out by the Intel automated
kernel build daemon/bot
---
drivers/power/supply/ds2780_battery.c | 5 -----
drivers/power/supply/ds2781_battery.c | 5 -----
2 files changed, 10 deletions(-)
diff --git a/drivers/power/supply/ds2780_battery.c b/drivers/power/supply/ds2780_battery.c
index e5d81b4..370e910 100644
--- a/drivers/power/supply/ds2780_battery.c
+++ b/drivers/power/supply/ds2780_battery.c
@@ -56,11 +56,6 @@ to_ds2780_device_info(struct power_supply *psy)
return power_supply_get_drvdata(psy);
}
-static inline struct power_supply *to_power_supply(struct device *dev)
-{
- return dev_get_drvdata(dev);
-}
-
static inline int ds2780_battery_io(struct ds2780_device_info *dev_info,
char *buf, int addr, size_t count, int io)
{
diff --git a/drivers/power/supply/ds2781_battery.c b/drivers/power/supply/ds2781_battery.c
index efe83ef..d1b5a19 100644
--- a/drivers/power/supply/ds2781_battery.c
+++ b/drivers/power/supply/ds2781_battery.c
@@ -54,11 +54,6 @@ to_ds2781_device_info(struct power_supply *psy)
return power_supply_get_drvdata(psy);
}
-static inline struct power_supply *to_power_supply(struct device *dev)
-{
- return dev_get_drvdata(dev);
-}
-
static inline int ds2781_battery_io(struct ds2781_device_info *dev_info,
char *buf, int addr, size_t count, int io)
{
--
2.7.4