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: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Alex Elder 2014-10-20 23:01:03 -05:00 committed by Greg Kroah-Hartman
parent 03130a77d5
commit fb305c335c

View File

@ -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