Commit fb305c33 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: stash power supply pointer in connection

The battery code was not stashing a copy of its private data
pointer.  It'll be needed in the next patch.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 03130a77
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment