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:
03130a7
)
greybus: stash power supply pointer in connection
author
Alex Elder
<elder@linaro.org>
Tue, 21 Oct 2014 04:01:03 +0000
(23:01 -0500)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Tue, 21 Oct 2014 06:36:11 +0000
(14:36 +0800)
The battery code was not stashing a copy of its private data
pointer. It'll be needed in the next patch.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
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 09c3290e1eaf1cd15dbda6fba231e37f17613b54..5d0db61d49d25529d5b1d6837b2cdbf8eeaf13e0 100644
(file)
--- a/
drivers/staging/greybus/battery-gb.c
+++ b/
drivers/staging/greybus/battery-gb.c
@@
-125,6
+125,7
@@
int gb_battery_device_init(struct gb_connection *connection)
return -ENOMEM;
gb->connection = connection; // FIXME refcount!
+ connection->private = gb;
b = &gb->bat;
// FIXME - get a better (i.e. unique) name