summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/light.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/light.c
parent418f3dab841f85e24beb6e30858cafce5cf1f87c (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/light.c')
-rw-r--r--drivers/staging/greybus/light.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c
index 47d4ac4533bc..8b71ed3df318 100644
--- a/drivers/staging/greybus/light.c
+++ b/drivers/staging/greybus/light.c
@@ -1154,7 +1154,7 @@ static int gb_lights_request_handler(struct gb_operation *op)
{
struct gb_connection *connection = op->connection;
struct device *dev = &connection->bundle->dev;
- struct gb_lights *glights = connection->private;
+ struct gb_lights *glights = gb_connection_get_data(connection);
struct gb_light *light;
struct gb_message *request;
struct gb_lights_event_request *payload;
@@ -1230,7 +1230,7 @@ static int gb_lights_probe(struct gb_bundle *bundle,
}
glights->connection = connection;
- connection->private = glights;
+ gb_connection_set_data(connection, glights);
mutex_init(&glights->lights_lock);