linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] android/health: Fix wrong user data passing in set_mcl_cb
@ 2014-06-26 21:04 Ravi kumar Veeramally
  2014-06-27 13:31 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Ravi kumar Veeramally @ 2014-06-26 21:04 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Ravi kumar Veeramally

It used to be channel, when set_mcl_cb refactored
it got changed to channed->dev.
commit 32180fa3a649ec26f9f3891a0ff5e4fe16592b91 introduced it.
---
 android/health.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/health.c b/android/health.c
index 42c9a6e..30a6166 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1341,7 +1341,7 @@ static void create_mcl_cb(struct mcap_mcl *mcl, GError *err, gpointer data)
 	channel->dev->mcl_conn = true;
 	info("MCL connected");
 
-	ret = set_mcl_cb(channel->dev->mcl, channel->dev, &gerr);
+	ret = set_mcl_cb(channel->dev->mcl, channel, &gerr);
 	if (!ret) {
 		error("health: error setting mdl callbacks: %s", gerr->message);
 		g_error_free(gerr);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] android/health: Fix wrong user data passing in set_mcl_cb
  2014-06-26 21:04 [PATCH] android/health: Fix wrong user data passing in set_mcl_cb Ravi kumar Veeramally
@ 2014-06-27 13:31 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-06-27 13:31 UTC (permalink / raw)
  To: Ravi kumar Veeramally; +Cc: linux-bluetooth

Hi Ravi,

On Friday 27 of June 2014 00:04:14 Ravi kumar Veeramally wrote:
> It used to be channel, when set_mcl_cb refactored
> it got changed to channed->dev.
> commit 32180fa3a649ec26f9f3891a0ff5e4fe16592b91 introduced it.
> ---
>  android/health.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/android/health.c b/android/health.c
> index 42c9a6e..30a6166 100644
> --- a/android/health.c
> +++ b/android/health.c
> @@ -1341,7 +1341,7 @@ static void create_mcl_cb(struct mcap_mcl *mcl, GError *err, gpointer data)
>  	channel->dev->mcl_conn = true;
>  	info("MCL connected");
>  
> -	ret = set_mcl_cb(channel->dev->mcl, channel->dev, &gerr);
> +	ret = set_mcl_cb(channel->dev->mcl, channel, &gerr);
>  	if (!ret) {
>  		error("health: error setting mdl callbacks: %s", gerr->message);
>  		g_error_free(gerr);
> 

Applied, thanks.

-- 
Best regards, 
Szymon Janc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-27 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-26 21:04 [PATCH] android/health: Fix wrong user data passing in set_mcl_cb Ravi kumar Veeramally
2014-06-27 13:31 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).