summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2016-03-22 14:30:35 -0400
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-22 16:47:28 -0400
commit0ec306324423444d3ee0222708ef9de7f5586b93 (patch)
tree3d6ad3817d35074b12b8d92162437e03f6ce2372 /drivers/staging/greybus/camera.c
parent418f3dab841f85e24beb6e30858cafce5cf1f87c (diff)
downloadop-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/camera.c')
-rw-r--r--drivers/staging/greybus/camera.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index 722f2b4..a871b0f 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);
OpenPOWER on IntegriCloud