greybus: stash power supply pointer in connection
authorAlex Elder <elder@linaro.org>
Tue, 21 Oct 2014 04:01:03 +0000 (23:01 -0500)
committerGreg 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

index 09c3290e1eaf1cd15dbda6fba231e37f17613b54..5d0db61d49d25529d5b1d6837b2cdbf8eeaf13e0 100644 (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