Commit 6ea462a4 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

greybus: bundle.h: add a private field to struct gb_bundle

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: default avatarGreg Kroah-Hartman <gregkh@google.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
parent 7e4c8d71
......@@ -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)
......
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