diff options
author | Vaibhav Agarwal <vaibhav.agarwal@linaro.org> | 2016-05-04 16:29:24 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-04 11:30:20 -0700 |
commit | 0634874a584e8bd875a83850c656e5adefc53bde (patch) | |
tree | 735b4ddd7f3895d54e945341d1a301a4691985d9 /drivers/staging/greybus | |
parent | c188fdc8176a8cb18b5d81cccac590311251208e (diff) |
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')
-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; |