projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33ea3a3
)
greybus: battery FIXME added
author
Greg Kroah-Hartman
<greg@kroah.com>
Sun, 7 Sep 2014 22:54:24 +0000
(15:54 -0700)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Sun, 7 Sep 2014 22:54:24 +0000
(15:54 -0700)
drivers/staging/greybus/battery-gb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/battery-gb.c
b/drivers/staging/greybus/battery-gb.c
index 123b2af566351c04ec2e397270dee45a90a2961b..242b34f637d8ccdf2d300ced24fc1c6b53ed150c 100644
(file)
--- a/
drivers/staging/greybus/battery-gb.c
+++ b/
drivers/staging/greybus/battery-gb.c
@@
-14,6
+14,10
@@
struct gb_battery {
struct power_supply bat;
+ // FIXME
+ // we will want to keep the battery stats in here as we will be getting
+ // updates from the SVC "on the fly" so we don't have to always go ask
+ // the battery for some information. Hopefully...
struct greybus_device *gdev;
};
#define to_gb_battery(x) container_of(x, struct gb_battery, bat)
@@
-47,8
+51,6
@@
static int get_voltage(struct gb_battery *gb)
return 0;
}
-
-
static int get_property(struct power_supply *b,
enum power_supply_property psp,
union power_supply_propval *val)