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:
parent
03130a77d5
commit
fb305c335c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user