greybus: connection: add functions to get/set private data
authorGreg Kroah-Hartman <gregkh@google.com>
Tue, 22 Mar 2016 18:30:16 +0000 (14:30 -0400)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 22 Mar 2016 20:47:28 +0000 (16:47 -0400)
commit418f3dab841f85e24beb6e30858cafce5cf1f87c
tree2e6691107e3ee668ed1e47f73b63dd81325995a1
parent30b442b385c199b3f8e1df26fd6f0c07b61b32a2
greybus: connection: add functions to get/set private data

Add gb_connection_get_data() and gb_connection_set_data() to get and set
the private data of a connection, instead of "open coding" it
everywhere.

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.h