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/camera.c | |
parent | 418f3dab841f85e24beb6e30858cafce5cf1f87c (diff) |
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/camera.c')
-rw-r--r-- | drivers/staging/greybus/camera.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index 722f2b4fe54d..a871b0f33733 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -374,7 +374,7 @@ static int gb_camera_flush(struct gb_camera *gcam, u32 *request_id) static int gb_camera_event_recv(u8 type, struct gb_operation *op) { - struct gb_camera *gcam = op->connection->private; + struct gb_camera *gcam = gb_connection_get_data(op->connection); struct gb_camera_metadata_request *payload; struct gb_message *request; @@ -904,7 +904,7 @@ static int gb_camera_connection_init(struct gb_connection *connection) return -ENOMEM; gcam->connection = connection; - connection->private = gcam; + gb_connection_set_data(connection, gcam); /* * Create the data connection between camera module CDSI0 and APB CDS1. @@ -936,7 +936,7 @@ error: static void gb_camera_connection_exit(struct gb_connection *connection) { - struct gb_camera *gcam = connection->private; + struct gb_camera *gcam = gb_connection_get_data(connection); gb_camera_unregister_intf_ops(gcam); |