diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-22 14:30:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-03-22 16:47:28 -0400 |
commit | 0ec306324423444d3ee0222708ef9de7f5586b93 (patch) | |
tree | 3d6ad3817d35074b12b8d92162437e03f6ce2372 /drivers/staging/greybus/hid.c | |
parent | 418f3dab841f85e24beb6e30858cafce5cf1f87c (diff) | |
download | op-kernel-dev-0ec306324423444d3ee0222708ef9de7f5586b93.zip op-kernel-dev-0ec306324423444d3ee0222708ef9de7f5586b93.tar.gz |
greybus: convert drivers to use connection->private set/get
This converts all drivers to use the gb_connection_get_data() and
gb_connection_set_data() functions to make it a bit more explicit as to
what is going on.
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>
Diffstat (limited to 'drivers/staging/greybus/hid.c')
-rw-r--r-- | drivers/staging/greybus/hid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/greybus/hid.c index 6ef151f..fd4a7e0 100644 --- a/drivers/staging/greybus/hid.c +++ b/drivers/staging/greybus/hid.c @@ -100,7 +100,7 @@ static int gb_hid_set_report(struct gb_hid *ghid, u8 report_type, u8 report_id, static int gb_hid_request_handler(struct gb_operation *op) { struct gb_connection *connection = op->connection; - struct gb_hid *ghid = connection->private; + struct gb_hid *ghid = gb_connection_get_data(connection); struct gb_hid_input_report_request *request = op->request->payload; if (op->type != GB_HID_TYPE_IRQ_EVENT) { @@ -449,7 +449,7 @@ static int gb_hid_probe(struct gb_bundle *bundle, goto err_free_ghid; } - connection->private = ghid; + gb_connection_set_data(connection, ghid); ghid->connection = connection; hid = hid_allocate_device(); |