summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2016-03-22 19:30:35 +0100
committerGreg Kroah-Hartman2016-03-22 21:47:28 +0100
commit0ec306324423444d3ee0222708ef9de7f5586b93 (patch)
tree3d6ad3817d35074b12b8d92162437e03f6ce2372 /drivers/staging/greybus/camera.c
parentgreybus: connection: add functions to get/set private data (diff)
downloadkernel-qcow2-linux-0ec306324423444d3ee0222708ef9de7f5586b93.tar.gz
kernel-qcow2-linux-0ec306324423444d3ee0222708ef9de7f5586b93.tar.xz
kernel-qcow2-linux-0ec306324423444d3ee0222708ef9de7f5586b93.zip
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 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);