summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/gpio.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/gpio.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/gpio.c')
-rw-r--r--drivers/staging/greybus/gpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
index 7b2cb5d81e54..440ff44c8524 100644
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@ -351,7 +351,7 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op)
{
struct gb_connection *connection = op->connection;
struct device *dev = &connection->bundle->dev;
- struct gb_gpio_controller *ggc = connection->private;
+ struct gb_gpio_controller *ggc = gb_connection_get_data(connection);
struct gb_message *request;
struct gb_gpio_irq_event_request *event;
int irq;
@@ -633,7 +633,7 @@ static int gb_gpio_connection_init(struct gb_connection *connection)
if (!ggc)
return -ENOMEM;
ggc->connection = connection;
- connection->private = ggc;
+ gb_connection_set_data(connection, ggc);
ret = gb_gpio_controller_setup(ggc);
if (ret)
@@ -700,7 +700,7 @@ err_free_controller:
static void gb_gpio_connection_exit(struct gb_connection *connection)
{
- struct gb_gpio_controller *ggc = connection->private;
+ struct gb_gpio_controller *ggc = gb_connection_get_data(connection);
if (!ggc)
return;