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/pwm.c | |
parent | 418f3dab841f85e24beb6e30858cafce5cf1f87c (diff) | |
download | op-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/pwm.c')
-rw-r--r-- | drivers/staging/greybus/pwm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/greybus/pwm.c b/drivers/staging/greybus/pwm.c index 018d5c2..176301a 100644 --- a/drivers/staging/greybus/pwm.c +++ b/drivers/staging/greybus/pwm.c @@ -188,7 +188,7 @@ static int gb_pwm_connection_init(struct gb_connection *connection) if (!pwmc) return -ENOMEM; pwmc->connection = connection; - connection->private = pwmc; + gb_connection_set_data(connection, pwmc); /* Query number of pwms present */ ret = gb_pwm_count_operation(pwmc); @@ -218,8 +218,7 @@ out_err: static void gb_pwm_connection_exit(struct gb_connection *connection) { - struct gb_pwm_chip *pwmc = connection->private; - + struct gb_pwm_chip *pwmc = gb_connection_get_data(connection); if (!pwmc) return; |