diff options
author | 2016-05-04 16:29:24 +0530 | |
---|---|---|
committer | 2016-05-04 11:30:20 -0700 | |
commit | 0634874a584e8bd875a83850c656e5adefc53bde (patch) | |
tree | 735b4ddd7f3895d54e945341d1a301a4691985d9 /drivers/staging/greybus/audio_module.c | |
parent | greybus: audio: Reduce codec->lock granularity (diff) | |
download | linux-dev-0634874a584e8bd875a83850c656e5adefc53bde.tar.xz linux-dev-0634874a584e8bd875a83850c656e5adefc53bde.zip |
greybus: audio: Use standard API to set connections' private data
Use standard API greybus_set_drvdata() while setting private
data pointers for mgmt & data connection.
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/audio_module.c')
-rw-r--r-- | drivers/staging/greybus/audio_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/audio_module.c b/drivers/staging/greybus/audio_module.c index 27e5ff19dca6..d2dd5b82ce41 100644 --- a/drivers/staging/greybus/audio_module.c +++ b/drivers/staging/greybus/audio_module.c @@ -173,7 +173,7 @@ static int gb_audio_add_mgmt_connection(struct gbaudio_module_info *gbmodule, if (IS_ERR(connection)) return PTR_ERR(connection); - connection->private = gbmodule; + greybus_set_drvdata(bundle, gbmodule); gbmodule->mgmt_connection = connection; return 0; @@ -201,7 +201,7 @@ static int gb_audio_add_data_connection(struct gbaudio_module_info *gbmodule, return PTR_ERR(connection); } - connection->private = gbmodule; + greybus_set_drvdata(bundle, gbmodule); /* dai->name should be same as codec->dai_name */ strlcpy(dai->name, "greybus-apb1", NAME_SIZE); dai->data_cport = connection->intf_cport_id; |