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/audio_codec.c | |
parent | 418f3dab841f85e24beb6e30858cafce5cf1f87c (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/audio_codec.c')
-rw-r--r-- | drivers/staging/greybus/audio_codec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index 025dd53507b7..30b381ab8a1f 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -675,7 +675,7 @@ static int gb_audio_add_mgmt_connection(struct gbaudio_codec_info *gbcodec, if (IS_ERR(connection)) return PTR_ERR(connection); - connection->private = gbcodec; + gb_connection_set_data(connection, gbcodec); gbcodec->mgmt_connection = connection; return 0; @@ -703,7 +703,7 @@ static int gb_audio_add_data_connection(struct gbaudio_codec_info *gbcodec, return PTR_ERR(connection); } - connection->private = gbcodec; + gb_connection_set_data(connection, gbcodec); atomic_set(&dai->users, 0); init_waitqueue_head(&dai->wait_queue); dai->data_cport = connection->intf_cport_id; |