greybus: bundle.h: add a private field to struct gb_bundle
authorGreg Kroah-Hartman <gregkh@google.com>
Fri, 16 Oct 2015 23:54:00 +0000 (16:54 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 19 Oct 2015 19:09:10 +0000 (12:09 -0700)
The gb_bundle structure needs a private field if we are going to be able
to replace the gb_connection device with this one for all use cases.

Ideally we could use the private pointer within the struct device, but
for now let's just try to mirror how people were using the gb_connection
structure to make the patches simpler, and the logic the same.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/bundle.h

index 9134df7930c0c96cf997ca4bd8d4207403110c97..24ddd449034c2f2cc01fedf04645410594809ea9 100644 (file)
@@ -22,6 +22,7 @@ struct gb_bundle {
        u8                      *state;
 
        struct list_head        links;  /* interface->bundles */
+       void                    *private;
 };
 #define to_gb_bundle(d) container_of(d, struct gb_bundle, dev)